Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit bd9bec8

Browse files
committed
[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 ```
1 parent 0f62e7e commit bd9bec8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/orc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ else() # not Apple
133133

134134
if (MSVC)
135135
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
136+
set(ORC_CFLAGS ${ORC_CFLAGS} /D_HAS_EXCEPTIONS=0 )
136137
endif()
137138
else()
138139
set(ORC_BUILD_TYPE STATIC)

0 commit comments

Comments
 (0)