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

Osman Zakir via llvm-dev
2019-10-28T11:47:43Z

I ran this command "cmake -S../llvm -G"Visual Studio 16 2019"
-Thost=x64 -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release
-DCMAKE_MSVC_RUNTIME_LIBRARY=MT -DCMAKE_CXX_FLAGS="/permissive- /EHsc
/std:c++17 /O2 /MT /D_SILENCE_ALL_CXX_DEPRECATION_WARNINGS"
-DLLVM_ENABLE_RTTI=On -DLLVM_ENABLE_EH=ON -DCMAKE_CXX_STANDARD=17
-DPYTHON_HOME=C:/Users/Osman/AppData/Local/Programs/Python/Python38
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;libcxx;libcxxabi"".
But I still get "Using Release VC++ CRT: MD", and also the CMake
warning: "CMake Warning at utils/benchmark/CMakeLists.txt:244 (message):
  Using std::regex with exceptions disabled is not fully supported".

Please help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20191028/186e386d/attachment.html>