Skip to content

Commit 6de10cb

Browse files
authored
Merge pull request #5809 from ethereum/emscripten-strict
Set emscripten strict mode and remove obsolete option
2 parents d8f6634 + 3f58505 commit 6de10cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/EthCompilerSettings.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
9898
# Abort if linking results in any undefined symbols
9999
# Note: this is on by default in the CMake Emscripten module which we aren't using
100100
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s ERROR_ON_UNDEFINED_SYMBOLS=1")
101-
add_definitions(-DETH_EMSCRIPTEN=1)
101+
# Disallow deprecated emscripten build options.
102+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s STRICT=1")
102103
endif()
103104
endif()
104105

0 commit comments

Comments
 (0)