[PATCH] D25230: [compiler-rt] Exclude compiler-rt from using -fmodules when LLVM_ENABLE_MODULES=On
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 8 07:18:30 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283658: [compiler-rt] Exclude compiler-rt from using -fmodules when… (authored by kuba.brecka).
Changed prior to commit:
https://reviews.llvm.org/D25230?vs=73454&id=74033#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25230
Files:
compiler-rt/trunk/CMakeLists.txt
Index: compiler-rt/trunk/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/CMakeLists.txt
+++ compiler-rt/trunk/CMakeLists.txt
@@ -205,6 +205,12 @@
llvm_replace_compiler_option(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Z[i7I]" "/Z7")
endif()
+if(LLVM_ENABLE_MODULES)
+ # Sanitizers cannot be built with -fmodules. The interceptors intentionally
+ # don't include system headers, which is incompatible with modules.
+ list(APPEND SANITIZER_COMMON_CFLAGS -fno-modules)
+endif()
+
# Turn off several warnings.
append_list_if(COMPILER_RT_HAS_WGNU_FLAG -Wno-gnu SANITIZER_COMMON_CFLAGS)
append_list_if(COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG -Wno-variadic-macros SANITIZER_COMMON_CFLAGS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25230.74033.patch
Type: text/x-patch
Size: 739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161008/ebb5c8f5/attachment.bin>
More information about the llvm-commits
mailing list