<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">It works with ToT.  Thanks. <div><br><div><div>On Jul 9, 2013, at 9:56 AM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr">What version of Clang are you using as the host compiler? It needs to be a reasonably modern one for this option to work.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 9:45 AM, Nadav Rotem<span class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">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="">[  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><div class="HOEnZb"><div class="h5"><br><span>On 07/09/13,<span class="Apple-converted-space"> </span><b>Alexey Samsonov<span class="Apple-converted-space"> </span></b><<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>> wrote:</span><blockquote type="cite" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(0, 0, 255); padding-left: 13px; margin-left: 0px;">Author: samsonov<br>Date: Tue Jul  9 05:56:13 2013<br>New Revision: 185925<br><br>URL:<span class="Apple-converted-space"> </span><a href="http://llvm.org/viewvc/llvm-project?rev=185925&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=185925&view=rev</a><br>Log:<br>Document LLVM_USE_SANITIZER CMake option<br><br>Modified:<br>   <span class="Apple-converted-space"> </span>llvm/trunk/docs/CMake.rst<br><br>Modified: llvm/trunk/docs/CMake.rst<br>URL:<span class="Apple-converted-space"> </span><a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMake.rst?rev=185925&r1=185924&r2=185925&view=diff" target="_blank">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>  <span class="Apple-converted-space"> </span>Build with zlib to support compression/uncompression in LLVM tools.<br>  <span class="Apple-converted-space"> </span>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><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br></blockquote></div></div><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a></blockquote></div></div></div></blockquote></div><br></div></body></html>