From d800658d70dd0dc8be5a6fdf017515ee316e6b42 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 16 May 2021 19:56:55 -0700 Subject: libclc: Pass -cl-no-stdinc to compiler and assembler libclc uses clang CLC preprocessor on .ll files, llvm/clang-13 started including clc declarations by default (clang cf3ef15a6ec5e5b45c6c54e8fbe3769255e815ce), thus corrupting any .ll assembly files that are used by libclc. Inclusion of the default declarations can be turned off using a cmdline switch but that remains to be implemented in the libclc build system. manually adding '-cl-no-stdinc' should work as a workaround. Signed-off-by: Khem Raj (cherry picked from commit d692c0338fe60cdbb3025dcedbb05ca466335650) --- recipes-devtools/clang/libclc_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-devtools/clang/libclc_git.bb b/recipes-devtools/clang/libclc_git.bb index 9525b25..4edd4bf 100644 --- a/recipes-devtools/clang/libclc_git.bb +++ b/recipes-devtools/clang/libclc_git.bb @@ -19,6 +19,7 @@ EXTRA_OECMAKE += " \ -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ -Dclc_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeCLCCompiler.cmake.in \ -Dll_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeLLAsmCompiler.cmake.in \ + -DCMAKE_LLAsm_FLAGS=-cl-no-stdinc -DCMAKE_CLC_FLAGS=-cl-no-stdinc \ " do_configure_prepend () { -- cgit v1.2.3-54-g00ecf