forked from OSchip/llvm-project
[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:
parent
28ee5d2e90
commit
737370da20
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue