[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 19:19:16 PDT 2019
The warning is probably because of /D_HAS_EXCEPTIONS=0
On Mon, Oct 28, 2019 at 1:49 PM Osman Zakir <osmanzakir90 at hotmail.com>
> 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
> 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