diff options
author | Dan Albert <danalbert@google.com> | 2018-10-18 18:04:28 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2018-10-18 18:04:28 +0000 |
commit | dd5ba397be3a524040f2cb22f77e41f5d66158f1 (patch) | |
tree | 681d2ff171b129414d6ab98bc0b7286e77a14d51 /cmake/Modules | |
parent | 891cf3d53f726d02d5e814493c03153ce3a8f3bb (diff) | |
download | compiler-rt-dd5ba397be3a524040f2cb22f77e41f5d66158f1.tar.gz |
[compiler-rt] Don't explicitly set CMAKE_CXX_FLAGS.
Summary:
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.
Reviewers: eugenis, vitalybuka
Reviewed By: eugenis, vitalybuka
Subscribers: dberris, mgorny, delcypher, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D53335
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@344751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/AddCompilerRT.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake index 4efbd3a4a..4d4222df6 100644 --- a/cmake/Modules/AddCompilerRT.cmake +++ b/cmake/Modules/AddCompilerRT.cmake @@ -77,7 +77,7 @@ function(add_compiler_rt_object_libraries name) 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") |