Message ID | 20250522-clang-toolchain-v3-9-16cfc6d9891b@gmail.com |
---|---|
State | New |
Headers | show |
Series | clang: Add clang C/C++ toolchain | expand |
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index 7bae968094f2a272c4deff7416dbd1208549e6ce..5835662f7a63a23915ec4af94597ec4a614a4640 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc @@ -84,6 +84,7 @@ EXTRA_OECONF = "\ " CFLAGS += "-DFIRMWARE_DIR=\\"${nonarch_base_libdir}/firmware\\"" +CFLAGS:append:toolchain-clang = " -Wno-invalid-pp-token" # bluez5 builds a large number of useful utilities but does not # install them. Specify which ones we want put into ${PN}-noinst-tools.
We add FIRMWARE_DIR via CFLAGS using escapes for string and clang option parser flags it <command line>:4:23: warning: missing terminating '"' character [-Winvalid-pp-token] 4 | #define FIRMWARE_DIR \"/usr/lib/firmware\" | ^ emitting this warning during configure means some tests fail wrongly. e.g. test for enable -fPIC -DPIC, which results in textrels in libbbluetooth.so This warning can be disabled, the string is correctly passed to sources in the end, so its spurious Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta/recipes-connectivity/bluez5/bluez5.inc | 1 + 1 file changed, 1 insertion(+)