aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2019-01-18 00:15:35 +0800
committerGitHub <noreply@github.com>2019-01-18 00:15:35 +0800
commit6de10cb9da3a81befb050ba9b883bfd4b0524cf6 (patch)
treedc2ae4c3f13fb2a034c4a6f419a87210f6c33922
parentd8f663429fb6757df11916ea411f822a5fd0a704 (diff)
parent3f58505c76acf3f2ffe2c171aa1332a3eea02990 (diff)
downloaddexon-solidity-6de10cb9da3a81befb050ba9b883bfd4b0524cf6.tar.gz
dexon-solidity-6de10cb9da3a81befb050ba9b883bfd4b0524cf6.tar.zst
dexon-solidity-6de10cb9da3a81befb050ba9b883bfd4b0524cf6.zip
Merge pull request #5809 from ethereum/emscripten-strict
Set emscripten strict mode and remove obsolete option
-rw-r--r--cmake/EthCompilerSettings.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake
index c45ecba6..8ffdfeb0 100644
--- a/cmake/EthCompilerSettings.cmake
+++ b/cmake/EthCompilerSettings.cmake
@@ -98,7 +98,8 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
# Abort if linking results in any undefined symbols
# Note: this is on by default in the CMake Emscripten module which we aren't using
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s ERROR_ON_UNDEFINED_SYMBOLS=1")
- add_definitions(-DETH_EMSCRIPTEN=1)
+ # Disallow deprecated emscripten build options.
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s STRICT=1")
endif()
endif()