diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2023-06-19 12:35:53 +0800 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-07-07 04:30:26 -1000 |
commit | 6515617990ef049b720365a3e57a5238d370b475 (patch) | |
tree | 07f6792c3fd1f0ed723fe983a6ffd84ee9dda1f9 /scripts/lib/devtool/runqemu.py | |
parent | 725d9c170d2eaa478f82e9809696f00aa4e817fa (diff) | |
download | poky-6515617990ef049b720365a3e57a5238d370b475.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: a54619ba8deb6731fdac97a1fe21e7a6ed2b5a75)
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/devtool/runqemu.py')
0 files changed, 0 insertions, 0 deletions