<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 28, 2019 at 5:11 AM Alexandre Ganea via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
You can’t enable the static CRT through the command-line. You would need to apply this patch: <a href="https://reviews.llvm.org/D55056" target="_blank">https://reviews.llvm.org/D55056</a><br>
(although it doesn’t work with lldb)<br></div></blockquote><div><br></div>Are you sure? I would expect `cmake -DLLVM_USE_CRT_RELEASE=MT` to use the static CRT.<div><br></div><div><div dir="ltr"><div>I think Zach is correct, Osman can use -DLLVM_ENABLE_EH=ON, and it will enable exceptions.</div><div><br></div><div>You're still getting a warning from the benchmark library because LLVM's cmake forcibly disables benchmark library exceptions here:</div><div><a href="https://github.com/llvm/llvm-project/blob/2724d9e/llvm/CMakeLists.txt#L1094">https://github.com/llvm/llvm-project/blob/2724d9e/llvm/CMakeLists.txt#L1094</a> </div><div>That's probably a bug, it should probably be dependent on LLVM_ENABLE_EH.<br></div></div></div></div></div>