Revert "[cmake] Remove duplicate command line options from build"
authorAaron Smith <aaron.smith@microsoft.com>
Wed, 11 Apr 2018 17:31:18 +0000 (17:31 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Wed, 11 Apr 2018 17:31:18 +0000 (17:31 +0000)
The Android sanitizer buildbot is failing with this change and it
looks like an additional change to cmake is necessary to fix the
build. Reverting this change for now.

llvm-svn: 329828

compiler-rt/cmake/Modules/AddCompilerRT.cmake

index a6a45f6..2383670 100644 (file)
@@ -63,8 +63,8 @@ function(add_compiler_rt_object_libraries name)
       list(REMOVE_ITEM target_flags "-msse3")
     endif()
 
-    set_target_compile_flags(${libname} ${extra_cflags_${libname}} ${target_flags})
-
+    set_target_compile_flags(${libname}
+      ${CMAKE_CXX_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")