[LLVMdev] r204593 breaks Asan tests on FreeBSD

Ivan A. Kosarev ivan at ivan-labs.com
Tue Apr 8 03:56:00 PDT 2014


Hello Alexey,

On 04/04/2014 03:07 PM, Alexey Samsonov wrote:
>
>     CC=clang CXX=clang++ cmake \
>         -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" \
>         -DCMAKE_CXX_COMPILER_WORKS=1 \
>
> ^^^
> Why do you need this line?

Without this line we fail on:

-- Check for working CXX compiler: /usr/bin/clang++ -- broken

The reason is that the [built-in] check doesn't propagate 
CMAKE_EXE_LINKER_FLAGS to a linker when build the test.

In fact, we probably should define CMAKE_CXX_COMPILER_FORCED instead of 
CMAKE_CXX_COMPILER_WORKS as the latter seems to be an internal variable.

-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140408/22ab2572/attachment.html>


More information about the llvm-dev mailing list