Skip to content

Commit

Permalink
Patch invalid CMake command in binaryen
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jul 31, 2018
1 parent b83b84a commit fcfc446
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/ProjectBinaryen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ExternalProject_Add(binaryen
BINARY_DIR ${binary_dir}
URL https://github.com/WebAssembly/binaryen/archive/1.38.9.tar.gz
URL_HASH SHA256=f8c6d4deb83dba8709c4df9f7983080ec0f9412e88899767ed2815b911ce1ebd
PATCH_COMMAND sh ${CMAKE_CURRENT_LIST_DIR}/patch_binaryen.sh
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DCMAKE_BUILD_TYPE=Release
Expand Down
4 changes: 4 additions & 0 deletions cmake/patch_binaryen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

sed -iE 's/COMMAND python /COMMAND /' src/passes/CMakeLists.txt
sed -iE 's/\#\!/usr/bin/env python/#!/usr/bin/env python2/' scripts/embedwast.py

0 comments on commit fcfc446

Please sign in to comment.