[llvm] r185925 - Document LLVM_USE_SANITIZER CMake option

Nadav Rotem nrotem at apple.com
Tue Jul 9 09:45:09 PDT 2013


Hi Alexey, 

I am getting this error when I configure using -DLLVM_USE_SANITIZER=Address.  Should I add any other flags ?



Scanning dependencies of target LLVMSupport

[  0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o

clang: error: '-fsanitize-undefined-trap-on-error' required with '-fsanitize=address' option

clang: error: unsupported argument 'address' to option 'fsanitize='

make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o] Error 1

make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2

make: *** [all] Error 2







Thanks,

Nadav





On 07/09/13, Alexey Samsonov  <samsonov at google.com> wrote:
> Author: samsonov
> Date: Tue Jul  9 05:56:13 2013
> New Revision: 185925
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=185925&view=rev
> Log:
> Document LLVM_USE_SANITIZER CMake option
> 
> Modified:
>     llvm/trunk/docs/CMake.rst
> 
> Modified: llvm/trunk/docs/CMake.rst
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMake.rst?rev=185925&r1=185924&r2=185925&view=diff
> ==============================================================================
> --- llvm/trunk/docs/CMake.rst (original)
> +++ llvm/trunk/docs/CMake.rst Tue Jul  9 05:56:13 2013
> @@ -275,6 +275,11 @@ LLVM-specific variables
>    Build with zlib to support compression/uncompression in LLVM tools.
>    Defaults to ON.
>  
> +**LLVM_USE_SANITIZER**:STRING
> +  Define the sanitizer used to build LLVM binaries and tests. Possible values
> +  are ``Address``, ``Memory`` and ``MemoryWithOrigins``. Defaults to empty
> +  string.
> +
>  Executing the test suite
>  ========================
>  
> 
> 
> _______________________________________________
> 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/20130709/6c6f0206/attachment.html>


More information about the llvm-commits mailing list