[PATCH] D53335: [compiler-rt] Don't explicitly set CMAKE_CXX_FLAGS.
Dan Albert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 16 12:09:59 PDT 2018
danalbert created this revision.
danalbert added a reviewer: eugenis.
Herald added subscribers: Sanitizers, delcypher, mgorny, dberris.
C++ flags should not be used for not-C++ files as it may trigger
-Werror=unused-command-line-argument. CMake will use CMAKE_C_FLAGS,
CMAKE_CXX_FLAGS, and CMAKE_ASM_FLAGS as appropriate implicitly, so
this does not need to be explicitly handled here.
This change depends on https://reviews.llvm.org/D53301, since one of
the builders depended on this behavior because it was not configuring
CMAKE_ASM_FLAGS.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D53335
Files:
cmake/Modules/AddCompilerRT.cmake
Index: cmake/Modules/AddCompilerRT.cmake
===================================================================
--- cmake/Modules/AddCompilerRT.cmake
+++ cmake/Modules/AddCompilerRT.cmake
@@ -77,7 +77,7 @@
endif()
set_target_compile_flags(${libname}
- ${CMAKE_CXX_FLAGS} ${extra_cflags_${libname}} ${target_flags})
+ ${extra_cflags_${libname}} ${target_flags})
set_property(TARGET ${libname} APPEND PROPERTY
COMPILE_DEFINITIONS ${LIB_DEFS})
set_target_properties(${libname} PROPERTIES FOLDER "Compiler-RT Libraries")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53335.169876.patch
Type: text/x-patch
Size: 553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181016/458eb50a/attachment.bin>
More information about the llvm-commits
mailing list