aboutsummaryrefslogtreecommitdiffstats
path: root/libsolc
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-11 23:15:03 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2019-01-18 01:31:34 +0800
commit5baac8470be4b82d53939e260d40f38d2fc15e6e (patch)
tree621c5d6dce7084740c03f1ad78fcd991f14b61a9 /libsolc
parent6de10cb9da3a81befb050ba9b883bfd4b0524cf6 (diff)
downloaddexon-solidity-5baac8470be4b82d53939e260d40f38d2fc15e6e.tar.gz
dexon-solidity-5baac8470be4b82d53939e260d40f38d2fc15e6e.tar.zst
dexon-solidity-5baac8470be4b82d53939e260d40f38d2fc15e6e.zip
Use emscripten 1.38.8 on both travis and circle.
Diffstat (limited to 'libsolc')
-rw-r--r--libsolc/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolc/CMakeLists.txt b/libsolc/CMakeLists.txt
index dfdf8162..7fb4aa05 100644
--- a/libsolc/CMakeLists.txt
+++ b/libsolc/CMakeLists.txt
@@ -1,4 +1,7 @@
if (EMSCRIPTEN)
+ # Specify which functions to export in soljson.js.
+ # Note that additional Emscripten-generated methods needed by solc-js are
+ # defined to be exported in cmake/EthCompilerSettings.cmake.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s EXPORTED_FUNCTIONS='[\"_solidity_license\",\"_solidity_version\",\"_solidity_compile\"]' -s RESERVED_FUNCTION_POINTERS=20")
add_executable(soljson libsolc.cpp libsolc.h)
target_link_libraries(soljson PRIVATE solidity)