pyodide/emsdk/Makefile

26 lines
847 B
Makefile
Raw Normal View History

all: emsdk/emsdk/.complete
2018-03-30 17:08:06 +00:00
2018-06-01 13:07:15 +00:00
# We hack the CPU_CORES, because if you use all of the cores on Circle-CI, you
# run out of memory
emsdk/emsdk/.complete:
if [ -d emsdk ]; then rm -rf emsdk; fi
2018-03-30 17:08:06 +00:00
git clone https://github.com/juj/emsdk.git
2018-06-01 13:07:15 +00:00
sed -i -e "s#CPU_CORES = max(multiprocessing.cpu_count()-1, 1)#CPU_CORES = 3#g" emsdk/emsdk
2018-03-30 17:08:06 +00:00
( \
cd emsdk ; \
./emsdk install --build=Release sdk-tag-1.38.4-64bit binaryen-tag-1.38.4-64bit ; \
2018-03-30 17:08:06 +00:00
cd .. ; \
(cat patches/*.patch | patch -p1) ; \
cp files/* emsdk/emscripten/tag-1.38.4/src/ ; \
2018-06-01 13:07:15 +00:00
cd emsdk/binaryen/tag-1.38.4_64bit_binaryen/ ; \
make ; \
cd ../.. ; \
2018-07-10 22:28:34 +00:00
cp binaryen/tag-1.38.4/bin/binaryen.js binaryen/tag-1.38.4_64bit_binaryen/bin ; \
./emsdk activate --embedded --build=Release sdk-tag-1.38.4-64bit binaryen-tag-1.38.4-64bit ; \
touch .complete \
2018-03-30 17:08:06 +00:00
)
clean:
rm -rf emsdk