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

Timur Iskhodzhanov timurrrr at google.com
Mon May 12 10:58:49 PDT 2014


Hans,

Can you please work on the driver support today?

It's 10pm here and I don't want to delay this review too much...



2014-05-12 21:57 GMT+04:00 Reid Kleckner <rnk at google.com>:

> 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/b8ae3614/attachment.html>


More information about the llvm-commits mailing list