]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: Fix gnu-efi detection for clang
authorJan Janssen <medhefgo@web.de>
Sat, 11 Dec 2021 12:47:21 +0000 (13:47 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 11 Dec 2021 19:31:41 +0000 (04:31 +0900)
commit3af5a8c613fb4e6d6f637d244e84e1376b7bd1d3
tree2b70d0e91a117a13a4d97ead082dc90e3404f3c1
parentdc79ae23fbcf8f3cfb3c97a64a82f188fd45cb4c
meson: Fix gnu-efi detection for clang

The gnu-efi headers emit some warnings in clang when not compiled with
-ffreestanding. This is normally not an issue for has_header_symbol()
unless meson is run with CFLAGS="-Werror". Note that this differs
from the --werror option, which does not get passed to clang.

Work around this by adding some compile args to the has_header_symbol()
invocation.
src/boot/efi/meson.build