mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7917 from ethereum/solc-backwards-compat
Add backwards compatibility to the generated soljson.js for solc-js <0.5.14
This commit is contained in:
commit
e075b10db6
@ -94,6 +94,9 @@ make -j 4
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p upload
|
mkdir -p upload
|
||||||
|
# Patch soljson.js to provide backwards-compatibility with older emscripten versions
|
||||||
|
# TODO: remove in 0.6.0!
|
||||||
|
echo -n ";/* backwards compatibility */ Module['Runtime'] = Module; Module['Pointer_stringify'] = Module['UTF8ToString'];" >> $BUILD_DIR/libsolc/soljson.js
|
||||||
cp $BUILD_DIR/libsolc/soljson.js upload/
|
cp $BUILD_DIR/libsolc/soljson.js upload/
|
||||||
cp $BUILD_DIR/libsolc/soljson.js ./
|
cp $BUILD_DIR/libsolc/soljson.js ./
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ function setup_solcjs
|
|||||||
|
|
||||||
cd "$dir"
|
cd "$dir"
|
||||||
printLog "Setting up solc-js..."
|
printLog "Setting up solc-js..."
|
||||||
git clone --depth 1 -b master https://github.com/ethereum/solc-js.git solc
|
git clone --depth 1 -b v0.5.0 https://github.com/ethereum/solc-js.git solc
|
||||||
|
|
||||||
cd solc
|
cd solc
|
||||||
npm install
|
npm install
|
||||||
@ -107,7 +107,7 @@ function force_solc_truffle_modules
|
|||||||
if [ -d "$d" ]; then
|
if [ -d "$d" ]; then
|
||||||
cd $d
|
cd $d
|
||||||
rm -rf solc
|
rm -rf solc
|
||||||
git clone --depth 1 -b master https://github.com/ethereum/solc-js.git solc
|
git clone --depth 1 -b v0.5.0 https://github.com/ethereum/solc-js.git solc
|
||||||
cp "$1" solc/soljson.js
|
cp "$1" solc/soljson.js
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
|
@ -40,7 +40,7 @@ VERSION="$2"
|
|||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
(
|
(
|
||||||
echo "Preparing solc-js (master)..."
|
echo "Preparing solc-js (master)..."
|
||||||
git clone --depth 1 --branch master https://github.com/ethereum/solc-js "$DIR"
|
git clone --depth 1 --branch v0.5.0 https://github.com/ethereum/solc-js "$DIR"
|
||||||
cd "$DIR"
|
cd "$DIR"
|
||||||
# disable "prepublish" script which downloads the latest version
|
# disable "prepublish" script which downloads the latest version
|
||||||
# (we will replace it anyway and it is often incorrectly cached
|
# (we will replace it anyway and it is often incorrectly cached
|
||||||
|
Loading…
Reference in New Issue
Block a user