mirror of https://github.com/pyodide/pyodide.git
Re-enable ccache for binaryen build (#1214)
Binaryen now invokes cc instead of gcc, and the cc symlink isn't in /usr/lib/ccache. This replaces the implementation in #1014. This has the disadvantage that build is now broken if ccache is not available.
This commit is contained in:
parent
7268e45c0f
commit
56073be2a9
|
@ -1,8 +1,6 @@
|
|||
PYODIDE_ROOT=$(abspath ..)
|
||||
include ../Makefile.envs
|
||||
|
||||
export PATH := /usr/lib/ccache:$(PATH)
|
||||
|
||||
all: emsdk/.complete
|
||||
|
||||
emsdk/.complete: ../Makefile.envs $(wildcard patches/*.patch)
|
||||
|
@ -12,7 +10,7 @@ emsdk/.complete: ../Makefile.envs $(wildcard patches/*.patch)
|
|||
git clone -b $(BINARYEN_VERSION) --depth 1 https://github.com/WebAssembly/binaryen.git emsdk/binaryen
|
||||
cat patches/*.patch | patch -p1
|
||||
cd emsdk && ./emsdk activate --embedded --build=Release $(EMSCRIPTEN_VERSION)
|
||||
cmake -S emsdk/binaryen -B emsdk/binaryen -DBUILD_STATIC_LIB=ON
|
||||
cmake -S emsdk/binaryen -B emsdk/binaryen -DBUILD_STATIC_LIB=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
make -C emsdk/binaryen -j5 wasm-opt
|
||||
cp emsdk/binaryen/bin/wasm-opt emsdk/upstream/bin/
|
||||
touch emsdk/.complete
|
||||
|
|
Loading…
Reference in New Issue