aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2019-01-21 22:30:29 +0800
committerchriseth <chris@ethereum.org>2019-01-21 22:33:36 +0800
commit4c9bbd85e6cf0f15906ba4aa84b907617e409f82 (patch)
treee4027fe0882f45a9007fcde41a873dcf86ab7237
parent8f694d5119dad14ca1bce4201f9ccc617e206774 (diff)
downloaddexon-solidity-4c9bbd85e6cf0f15906ba4aa84b907617e409f82.tar.gz
dexon-solidity-4c9bbd85e6cf0f15906ba4aa84b907617e409f82.tar.zst
dexon-solidity-4c9bbd85e6cf0f15906ba4aa84b907617e409f82.zip
Patch soljson.js to provide backwards compatibility with older emscripten versions.
-rwxr-xr-xscripts/travis-emscripten/build_emscripten.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/travis-emscripten/build_emscripten.sh b/scripts/travis-emscripten/build_emscripten.sh
index 373f32db..0b6c5346 100755
--- a/scripts/travis-emscripten/build_emscripten.sh
+++ b/scripts/travis-emscripten/build_emscripten.sh
@@ -96,6 +96,8 @@ make -j 4
cd ..
mkdir -p upload
+# Patch soljson.js to provide backwards-compatibility with older emscripten versions
+echo ";/* backwards compatibility */ Module['Runtime'] = Module;" >> build/libsolc/soljson.js
cp build/libsolc/soljson.js upload/
cp build/libsolc/soljson.js ./