[compiler-rt] r200482 - Add an /FS flag to the lib/interception CMake to make it buildable with VS2013 too

Alexey Samsonov samsonov at google.com
Thu Jan 30 11:30:14 PST 2014


Does it make sense to add -FS/ to SANITIZER_COMMON_FLAGS instead?


On Thu, Jan 30, 2014 at 11:19 PM, Timur Iskhodzhanov <timurrrr at google.com>wrote:

> Author: timurrrr
> Date: Thu Jan 30 13:19:29 2014
> New Revision: 200482
>
> URL: http://llvm.org/viewvc/llvm-project?rev=200482&view=rev
> Log:
> Add an /FS flag to the lib/interception CMake to make it buildable with
> VS2013 too
>
> Modified:
>     compiler-rt/trunk/lib/interception/CMakeLists.txt
>
> Modified: compiler-rt/trunk/lib/interception/CMakeLists.txt
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/CMakeLists.txt?rev=200482&r1=200481&r2=200482&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/interception/CMakeLists.txt (original)
> +++ compiler-rt/trunk/lib/interception/CMakeLists.txt Thu Jan 30 13:19:29
> 2014
> @@ -9,7 +9,15 @@ set(INTERCEPTION_SOURCES
>
>  include_directories(..)
>
> -set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
> +if (NOT MSVC)
> +  set(INTERCEPTION_CFLAGS
> +    ${SANITIZER_COMMON_CFLAGS})
> +    -fno-rtti)
> +else()
> +  set(INTERCEPTION_CFLAGS
> +    ${SANITIZER_COMMON_CFLAGS}
> +    /GR- /FS)
> +endif()
>
>  if(APPLE)
>    # Build universal binary on APPLE.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140130/1f66e431/attachment.html>


More information about the llvm-commits mailing list