summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/misc.py
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2023-06-19 12:35:53 +0800
committerSteve Sakoman <steve@sakoman.com>2023-07-21 06:27:34 -1000
commit4b4b09c2be34d2bccd77d375c9c29b3461ca7f24 (patch)
tree288d49cbf074e03ef8562417cc2366ebbce9a07e /scripts/lib/wic/misc.py
parent43ce6be661a0ae67b428503a2381c9d1e44549dd (diff)
downloadpoky-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/misc.py')
0 files changed, 0 insertions, 0 deletions