Reverting r220517; it seems this broke check-asan.

llvm-svn: 220869
This commit is contained in:
Aaron Ballman 2014-10-29 19:25:20 +00:00
parent c1de000e22
commit d98e197386
1 changed files with 2 additions and 6 deletions

View File

@ -52,12 +52,8 @@ macro(add_compiler_rt_runtime name arch type)
# Setup compile flags and definitions.
set_target_compile_flags(${name}
${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})
if (NOT MSVC)
# We do not want any custom link flags set on MSVC; especially not the
# compiler flags, as with other compilers.
set_target_link_flags(${name}
${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})
endif()
set_target_link_flags(${name}
${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})
set_property(TARGET ${name} APPEND PROPERTY
COMPILE_DEFINITIONS ${LIB_DEFS})
# Setup correct output directory in the build tree.