[compiler-rt] r220517 - Do not set linker flags for MSVC; they are not the same thing as compiler flags. Note, this is already done in the add_compiler_rt_test test_suite function.

Timur Iskhodzhanov timurrrr at google.com
Wed Oct 29 12:29:49 PDT 2014


Where was it reviewed?
This broke "check-asan", please revert.
On Thu Oct 23 2014 at 3:46:24 PM Aaron Ballman <aaron at aaronballman.com>
wrote:

> Author: aaronballman
> Date: Thu Oct 23 16:58:36 2014
> New Revision: 220517
>
> URL: http://llvm.org/viewvc/llvm-project?rev=220517&view=rev
> Log:
> Do not set linker flags for MSVC; they are not the same thing as compiler
> flags. Note, this is already done in the add_compiler_rt_test test_suite
> function.
>
> Modified:
>     compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
>
> Modified: compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/
> cmake/Modules/AddCompilerRT.cmake?rev=220517&r1=220516&r2=220517&view=diff
> ============================================================
> ==================
> --- compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake (original)
> +++ compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake Thu Oct 23
> 16:58:36 2014
> @@ -52,8 +52,12 @@ macro(add_compiler_rt_runtime name arch
>      # Setup compile flags and definitions.
>      set_target_compile_flags(${name}
>        ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})
> -    set_target_link_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_property(TARGET ${name} APPEND PROPERTY
>        COMPILE_DEFINITIONS ${LIB_DEFS})
>      # Setup correct output directory in the build tree.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141029/f85b5bae/attachment.html>


More information about the llvm-commits mailing list