Hi Alexey, <div><br /></div><div>I am getting this error when I configure using -DLLVM_USE_SANITIZER=Address.  Should I add any other flags ?</div><div><br /></div><div><p style="font-size: 18px; font-family: Menlo; color: rgb(213, 59, 211);"><b>Scanning dependencies of target LLVMSupport</b></p><p style="font-size: 18px; font-family: Menlo; color: rgb(52, 189, 38);"><span style="color: rgb(0, 0, 0);">[  0%] </span>Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o</p><p style="font-size: 18px; font-family: Menlo;">clang: error: '-fsanitize-undefined-trap-on-error' required with '-fsanitize=address' option</p><p style="font-size: 18px; font-family: Menlo;">clang: error: unsupported argument 'address' to option 'fsanitize='</p><p style="font-size: 18px; font-family: Menlo;">make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o] Error 1</p><p style="font-size: 18px; font-family: Menlo;">make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2</p><p style="font-size: 18px; font-family: Menlo;">make: *** [all] Error 2</p><p style="font-size: 18px; font-family: Menlo;"><br /></p><p style="font-size: 18px; font-family: Menlo;"><br /></p><p style="font-size: 18px; font-family: Menlo;">Thanks,</p><p style="font-size: 18px; font-family: Menlo;">Nadav</p><p style="font-size: 18px; font-family: Menlo;"><br /></p></div><br /><span>On 07/09/13, <b class="name">Alexey Samsonov </b> <samsonov@google.com> wrote:</span><blockquote cite="mid:20130709105614.15D642A6C029@llvm.org" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimepart text plain">Author: samsonov<br />Date: Tue Jul  9 05:56:13 2013<br />New Revision: 185925<br /><br />URL: <a href="http://llvm.org/viewvc/llvm-project?rev=185925&view=rev" target="l">http://llvm.org/viewvc/llvm-project?rev=185925&view=rev</a><br />Log:<br />Document LLVM_USE_SANITIZER CMake option<br /><br />Modified:<br />    llvm/trunk/docs/CMake.rst<br /><br />Modified: llvm/trunk/docs/CMake.rst<br />URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMake.rst?rev=185925&r1=185924&r2=185925&view=diff" target="l">http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMake.rst?rev=185925&r1=185924&r2=185925&view=diff</a><br />==============================================================================<br />--- llvm/trunk/docs/CMake.rst (original)<br />+++ llvm/trunk/docs/CMake.rst Tue Jul  9 05:56:13 2013<br />@@ -275,6 +275,11 @@ LLVM-specific variables<br />   Build with zlib to support compression/uncompression in LLVM tools.<br />   Defaults to ON.<br /> <br />+**LLVM_USE_SANITIZER**:STRING<br />+  Define the sanitizer used to build LLVM binaries and tests. Possible values<br />+  are ``Address``, ``Memory`` and ``MemoryWithOrigins``. Defaults to empty<br />+  string.<br />+<br /> Executing the test suite<br /> ========================<br /> <br /><br /><br />_______________________________________________<br />llvm-commits mailing list<br />llvm-commits@cs.uiuc.edu<br /><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="l">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br /></div></blockquote>