diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-12-07 18:36:54 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2019-01-17 23:22:43 +0800 |
commit | ecdc00d569e5f53b2dac125ea04c85e68e0ae595 (patch) | |
tree | 3a8ad2092a5234dd971c0d612a530a9edd4730b1 | |
parent | d8f663429fb6757df11916ea411f822a5fd0a704 (diff) | |
download | dexon-solidity-ecdc00d569e5f53b2dac125ea04c85e68e0ae595.tar.gz dexon-solidity-ecdc00d569e5f53b2dac125ea04c85e68e0ae595.tar.zst dexon-solidity-ecdc00d569e5f53b2dac125ea04c85e68e0ae595.zip |
Set emscripten to strict mode (wrt deprecated compiler options).
-rw-r--r-- | cmake/EthCompilerSettings.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake index c45ecba6..252e3ae1 100644 --- a/cmake/EthCompilerSettings.cmake +++ b/cmake/EthCompilerSettings.cmake @@ -98,6 +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") + # Disallow deprecated emscripten build options. + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s STRICT=1") add_definitions(-DETH_EMSCRIPTEN=1) endif() endif() |