Skip to content

Commit 0220a49

Browse files
committed
Don't default to -fno-exceptions -fno-rtti
We need exceptions/RTTI for non-core-only use cases (see #7736). Sending first version of this without patching any specific targets to restore these flags because I want to see if anything actually breaks. ghstack-source-id: 15560f2 ghstack-comment-id: 2599307626 Pull Request resolved: #7746
1 parent 090e5b3 commit 0220a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ endif()
149149
# they can be properly gc'd. -s: strip symbol. -fno-exceptions -fno-rtti:
150150
# disables exceptions and runtime type.
151151
set(CMAKE_CXX_FLAGS_RELEASE
152-
"-ffunction-sections -fdata-sections -fno-exceptions -fno-rtti ${CMAKE_CXX_FLAGS_RELEASE}"
152+
"-ffunction-sections -fdata-sections ${CMAKE_CXX_FLAGS_RELEASE}"
153153
)
154154
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
155155
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")

0 commit comments

Comments
 (0)