diff options
author | Alexandre Ganea <alex_toresh@yahoo.fr> | 2024-01-03 14:41:03 -0500 |
---|---|---|
committer | Alexandre Ganea <alex_toresh@yahoo.fr> | 2024-01-17 07:23:57 -0500 |
commit | bd9bec8e78a8f1f4229c18713425406007a92b64 (patch) | |
tree | 211b6795e46434918ca2a06c1b03711770b5d4dc /compiler-rt | |
parent | 0f62e7ea2c608be525bcf0635d8b58190f93c8c3 (diff) | |
download | llvm-bd9bec8e78a8f1f4229c18713425406007a92b64.zip llvm-bd9bec8e78a8f1f4229c18713425406007a92b64.tar.gz llvm-bd9bec8e78a8f1f4229c18713425406007a92b64.tar.bz2 |
[compiler-rt][ORC] Silence warning when building on MSVC/Windows
This fixes (the ORC lib already builds with exceptions disabled):
```
[5/11] Building CXX object projects\compiler-rt\lib\orc\CMakeFiles\RTOrc.x86_64.dir\dlfcn_wrapper.cpp.obj
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(1619): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
```
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/orc/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/orc/CMakeLists.txt b/compiler-rt/lib/orc/CMakeLists.txt index 5581205..6bcbf05 100644 --- a/compiler-rt/lib/orc/CMakeLists.txt +++ b/compiler-rt/lib/orc/CMakeLists.txt @@ -133,6 +133,7 @@ else() # not Apple if (MSVC) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL") + set(ORC_CFLAGS ${ORC_CFLAGS} /D_HAS_EXCEPTIONS=0 ) endif() else() set(ORC_BUILD_TYPE STATIC) |