[compiler-rt] r216663 - [ASan/Win] Add the -Zl flag to avoid /DEFAULTLIB:libcmt directive in the asan_win_uar_thunk object file
Timur Iskhodzhanov
timurrrr at google.com
Thu Aug 28 06:29:52 PDT 2014
Test case added in r216665.
2014-08-28 16:28 GMT+04:00 Timur Iskhodzhanov <timurrrr at google.com>:
> Author: timurrrr
> Date: Thu Aug 28 07:28:04 2014
> New Revision: 216663
>
> URL: http://llvm.org/viewvc/llvm-project?rev=216663&view=rev
> Log:
> [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
>
> Modified:
> compiler-rt/trunk/lib/asan/CMakeLists.txt
>
> Modified: compiler-rt/trunk/lib/asan/CMakeLists.txt
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/CMakeLists.txt?rev=216663&r1=216662&r2=216663&view=diff
> ==============================================================================
> --- compiler-rt/trunk/lib/asan/CMakeLists.txt (original)
> +++ compiler-rt/trunk/lib/asan/CMakeLists.txt Thu Aug 28 07:28:04 2014
> @@ -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()
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list