Add binaryen

This commit is contained in:
Shao Cheng 2020-07-08 19:20:48 +02:00
parent 3924b4e8cc
commit 6b01584fe5
2 changed files with 15 additions and 1 deletions

View File

@ -3209,7 +3209,8 @@ packages:
- codo-notation < 0 # MonadFail
- language-fortran < 0 # build failure with GHC 8.4
"Shao Cheng <astrohavoc@gmail.com> @TerrorJack":
"Cheng Shao <astrohavoc@gmail.com> @TerrorJack":
- binaryen
- cabal-toolkit < 0 # GHC 8.4 via Cabal-2.2.0.0
- direct-rocksdb < 0 # GHC 8.4 via Cabal-2.2.0.0

View File

@ -296,6 +296,19 @@ wget -qO - https://packages.confluent.io/deb/5.2/archive.key | apt-key add -
add-apt-repository "deb https://packages.confluent.io/deb/5.2 stable main"
apt-get update && apt install -y librdkafka-dev
# Install binaryen
curl -L https://github.com/WebAssembly/binaryen/archive/version_94.tar.gz | tar xz -C /tmp
pushd /tmp/binaryen-version_94
mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-G "Unix Makefiles" \
..
sudo make install
popd
# EOF: don't build anything below this line
# Cleanup