================
@@ -411,7 +420,7 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
       -I${CMAKE_CURRENT_SOURCE_DIR}/clc/include
       # Error on undefined macros
       -Werror=undef
-      -fdiscard-value-names
+      -fdiscard-value-names -nostdinc
----------------
wenju-he wrote:

without -nostdinc, clang still adds its own resource dir to includes at above 
step 2. This can cause strange behavior and CPATH still shadows the include 
directories. 

https://github.com/llvm/llvm-project/pull/177754
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to