diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2023-06-19 12:35:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-21 18:38:25 +0100 |
commit | 9c6d3c68d030d59b763b7a66e5139b1df5c7e397 (patch) | |
tree | ea7737627dd6e68686a9c88dbbeb9b08b99a1418 /scripts | |
parent | c9ac3632b27e34ff4da34a8d8593decfb45573ae (diff) | |
download | poky-9c6d3c68d030d59b763b7a66e5139b1df5c7e397.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: dda778d855b1838ae3004a9af310724b913490b4)
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions