Skip to content

Commit ce926d7

Browse files
committed
Patch invalid CMake command in binaryen
1 parent b83b84a commit ce926d7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cmake/ProjectBinaryen.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ ExternalProject_Add(binaryen
4444
BINARY_DIR ${binary_dir}
4545
URL https://github.com/WebAssembly/binaryen/archive/1.38.9.tar.gz
4646
URL_HASH SHA256=f8c6d4deb83dba8709c4df9f7983080ec0f9412e88899767ed2815b911ce1ebd
47+
PATCH_COMMAND sh ${CMAKE_CURRENT_LIST_DIR}/patch_binaryen.sh
4748
CMAKE_ARGS
4849
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
4950
-DCMAKE_BUILD_TYPE=Release

cmake/patch_binaryen.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
sed -iE 's/COMMAND python /COMMAND /' src/passes/CMakeLists.txt

0 commit comments

Comments
 (0)