[PATCH] [ASan tests] Add Windows-specific flags to lib/asan/tests/CMakeLists.txt

Reid Kleckner rnk at google.com
Mon May 12 10:57:13 PDT 2014


On Mon, May 12, 2014 at 10:50 AM, Alexey Samsonov <samsonov at google.com>wrote:

> -Xclang is horrible. Please add a FIXME assigned to you to remove this as
> soon as the necessary flags are supported by clang-cl.
>

I'd just do it first.  We basically add things as needed, as long as they
don't conflict.


> ================
> Comment at: lib/asan/tests/CMakeLists.txt:77
> @@ -50,2 +76,3 @@
>  # Unit tests require libstdc++.
> -set(ASAN_UNITTEST_COMMON_LINKFLAGS -lstdc++)
> +if(NOT MSVC)
> +  set(ASAN_UNITTEST_COMMON_LINKFLAGS -lstdc++)
> ----------------
> Why do you need this? If there is no libstdc++ on Windows, you should
> instead detect this in the build system and introduce
> COMPILER_RT_HAS_LIBSTDCXX like we do for libpthread and libdl.
>
> ================
> Comment at: lib/asan/tests/CMakeLists.txt:106
> @@ -76,3 +105,3 @@
>
> -set(ASAN_UNITTEST_NOINST_LINKFLAGS
> -  ${ASAN_UNITTEST_COMMON_LINKFLAGS} -lm)
> +if(NOT MSVC)
> +  set(ASAN_UNITTEST_NOINST_LINKFLAGS
> ----------------
> ditto
>
> http://reviews.llvm.org/D3720
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140512/24455ee9/attachment.html>


More information about the llvm-commits mailing list