[llvm-dev] How to Switch to Static Runtime and Enable C++ Exceptions?
Reid Kleckner via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 28 13:13:23 PDT 2019
On Mon, Oct 28, 2019 at 5:11 AM Alexandre Ganea via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> You can’t enable the static CRT through the command-line. You would need
> to apply this patch: https://reviews.llvm.org/D55056
> (although it doesn’t work with lldb)
>
Are you sure? I would expect `cmake -DLLVM_USE_CRT_RELEASE=MT` to use the
static CRT.
I think Zach is correct, Osman can use -DLLVM_ENABLE_EH=ON, and it will
enable exceptions.
You're still getting a warning from the benchmark library because
LLVM's cmake forcibly disables benchmark library exceptions here:
https://github.com/llvm/llvm-project/blob/2724d9e/llvm/CMakeLists.txt#L1094
That's probably a bug, it should probably be dependent on LLVM_ENABLE_EH.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191028/9b404667/attachment.html>
More information about the llvm-dev
mailing list