LLVM_COMPILE_FLAGS also applies to C files, otherwise tuning flags, etc won't be picked up.
Found via LLVM_COMPILE_FLAGS="-march=native" and objdump -d.
Differential D67171
LLVM_COMPILE_FLAGS also applies to C files davezarzycki on Sep 4 2019, 7:16 AM. Authored by
Details
LLVM_COMPILE_FLAGS also applies to C files, otherwise tuning flags, etc won't be picked up. Found via LLVM_COMPILE_FLAGS="-march=native" and objdump -d.
Diff Detail
Event TimelineComment Actions Hi, When compiling with gcc, we get warnings with this commit: [100/4153] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regfree.c.o cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [101/4153] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regstrlcpy.c.o cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [102/4153] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regerror.c.o cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [107/4153] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regexec.c.o cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [114/4153] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C |