[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>
wrote:
> 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?
>
> "
> setlocal
> "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=$(Configuration) -P
> cmake_install.cmake
> if %errorlevel% neq 0 goto :cmEnd
> :cmEnd
> endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
> :cmErrorLevel
> exit /b %1
> :cmDone
> 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...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191028/982e4b99/attachment.html>
More information about the llvm-dev
mailing list