[ASan/Win] Add the -Zl flag to avoid /DEFAULTLIB:libcmt directive in the asan_win_uar_thunk object file

This directive results in 'symbol already defined' when linking DLLs that use -MD

llvm-svn: 216663
This commit is contained in:
Timur Iskhodzhanov 2014-08-28 12:28:04 +00:00
parent 28ee5d2e90
commit 737370da20
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ else()
add_dependencies(asan clang_rt.asan_dll_thunk-${arch})
add_compiler_rt_runtime(clang_rt.asan_uar_thunk-${arch} ${arch} STATIC
SOURCES asan_win_uar_thunk.cc
CFLAGS ${ASAN_CFLAGS} -DASAN_UAR_THUNK
CFLAGS ${ASAN_CFLAGS} -DASAN_UAR_THUNK -Zl
DEFS ${ASAN_COMMON_DEFINITIONS})
add_dependencies(asan clang_rt.asan_uar_thunk-${arch})
endif()