[llvm-dev] How to Switch to Static Runtime and Enable C++ Exceptions?
Osman Zakir via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 28 13:49:36 PDT 2019
I'll try to do it all from within the IDE. I noticed that the /EHsc flag is already there (makes me wonder why CMake still gave that warning). But I also noticed something else. What's the reason for this in the Post-Build Event command line for INSTALL.vcxproj?
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=$(Configuration) -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
exit /b %1
if %errorlevel% neq 0 goto :VCEnd
Also, libclang.vcxproj has a static runtime set but it was also set to build a DLL instead of a static .lib library. I changed it to have it build a static library. I wonder if that's a good idea.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev