diff --git a/cmake/ProjectBinaryen.cmake b/cmake/ProjectBinaryen.cmake index b10d3a2bd..fd84b0705 100644 --- a/cmake/ProjectBinaryen.cmake +++ b/cmake/ProjectBinaryen.cmake @@ -44,7 +44,6 @@ 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= -DCMAKE_BUILD_TYPE=Release diff --git a/cmake/patch_binaryen.sh b/cmake/patch_binaryen.sh index 9fd6e34b6..74918955a 100644 --- a/cmake/patch_binaryen.sh +++ b/cmake/patch_binaryen.sh @@ -1,4 +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 +sed -iE 's/^#!/usr/bin/env python/#!/usr/bin/env python2/' scripts/embedwast.py