diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2023-06-19 12:35:53 +0800 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-07-21 06:27:34 -1000 |
commit | 4b4b09c2be34d2bccd77d375c9c29b3461ca7f24 (patch) | |
tree | 288d49cbf074e03ef8562417cc2366ebbce9a07e /scripts/lib/wic/partition.py | |
parent | 43ce6be661a0ae67b428503a2381c9d1e44549dd (diff) | |
download | poky-4b4b09c2be34d2bccd77d375c9c29b3461ca7f24.tar.gz |
zip: fix configure check by using _Static_assert
It's incorrect to run a cross-compiled program on build machine
to check if some feature is available or not. As these two checks
in zip are basically just checking the size, we can use _Static_assert
and sizeof to do such check at compile time.
(From OE-Core rev: 6f5986fb520ab89b0950d3e0fa8492de4de7798f)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dda778d855b1838ae3004a9af310724b913490b4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/wic/partition.py')
0 files changed, 0 insertions, 0 deletions