Skip to content

Commit 910dd2e

Browse files
Googlera-maurice
Googler
authored andcommitted
Disabled exceptions for firebase_app project (fixes std11 unit test)
PiperOrigin-RevId: 263244608
1 parent 04ebb9d commit 910dd2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,13 @@ add_library(firebase_app STATIC
269269
memory/unique_ptr.h
270270
memory/shared_ptr.h)
271271

272+
# Disable exceptions in std
273+
if (MSVC)
274+
target_compile_options(firebase_app PUBLIC /EHs-c-)
275+
else()
276+
target_compile_options(firebase_app PUBLIC -fno-exceptions)
277+
endif()
278+
272279
target_include_directories(firebase_app
273280
PUBLIC
274281
${CMAKE_CURRENT_LIST_DIR}/src/include

0 commit comments

Comments
 (0)