[llvm-dev] How to Switch to Static Runtime and Enable C++ Exceptions?

Zachary Turner via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 28 08:18:45 PDT 2019


Try setting LLVM_ENABLE_EH to ON on the CMake command line.

On Mon, Oct 28, 2019 at 7:38 AM Osman Zakir via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> I would really like to know about how to apply the patch for making
> MSVC-built LLVM executables lighter.  But aside from that, I also want to
> know what LLVM does to CMake's default setting of /EHsc.  I want to keep
> that setting on, but I can't figure out how.  Any help is appreciated.
> Thanks in advance.  P.S. The CMAKE_CXX_FLAGS variable isn't helping at all,
> otherwise I wouldn't be asking this.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191028/271fc603/attachment.html>


More information about the llvm-dev mailing list