Skip to content

Commit d0c8c79

Browse files
committed
Update emscripten docker image to be based on emscripten 2.0.12 and boost 1.75.0.
1 parent e9dcd4f commit d0c8c79

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

scripts/docker/buildpack-deps/Dockerfile.emscripten

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
# contains a Makefile in the docker/ subdirectory that can be used to create the
2727
# required base image using:
2828
#
29-
# make version=1.39.15 build
29+
# make version=2.0.12 build
3030
#
31-
FROM emscripten/emsdk:1.39.15 AS base
32-
LABEL version="2"
31+
FROM emscripten/emsdk:2.0.12 AS base
32+
LABEL version="3"
3333

3434
ADD emscripten.jam /usr/src
3535
RUN set -ex; \
@@ -40,28 +40,27 @@ RUN set -ex; \
4040
cd build; \
4141
emcmake cmake \
4242
-DCMAKE_BUILD_TYPE=MinSizeRel \
43-
-DCMAKE_INSTALL_PREFIX=/emsdk/emscripten/sdk/system/ \
43+
-DCMAKE_INSTALL_PREFIX=/emsdk/upstream/emscripten/system \
4444
-DZ3_BUILD_LIBZ3_SHARED=OFF \
4545
-DZ3_ENABLE_EXAMPLE_TARGETS=OFF \
4646
-DZ3_BUILD_TEST_EXECUTABLES=OFF \
4747
-DZ3_BUILD_EXECUTABLE=OFF \
4848
-DZ3_SINGLE_THREADED=ON \
4949
-DCMAKE_CXX_FLAGS="-s DISABLE_EXCEPTION_CATCHING=0" \
5050
..; \
51-
make; make install; \
51+
make ; make install; \
5252
rm -r /usr/src/z3; \
5353
cd /usr/src; \
54-
wget -q 'https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.tar.bz2' -O boost.tar.bz2; \
55-
test "$(sha256sum boost.tar.bz2)" = "4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402 boost.tar.bz2"; \
54+
wget -q 'https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.bz2' -O boost.tar.bz2; \
55+
test "$(sha256sum boost.tar.bz2)" = "953db31e016db7bb207f11432bef7df100516eeb746843fa0486a222e3fd49cb boost.tar.bz2"; \
5656
tar -xf boost.tar.bz2; \
5757
rm boost.tar.bz2; \
58-
cd boost_1_73_0; \
58+
cd boost_1_75_0; \
5959
mv ../emscripten.jam .; \
6060
./bootstrap.sh; \
6161
echo "using emscripten : : em++ ;" >> project-config.jam ; \
6262
./b2 toolset=emscripten link=static variant=release threading=single runtime-link=static \
6363
--with-system --with-filesystem --with-test --with-program_options \
6464
cxxflags="-s DISABLE_EXCEPTION_CATCHING=0 -Wno-unused-local-typedef -Wno-variadic-macros -Wno-c99-extensions -Wno-all" \
65-
--prefix=/emsdk/emscripten/sdk/system install; \
66-
rm -r /usr/src/boost_1_73_0
67-
65+
--prefix=/emsdk/upstream/emscripten/system install; \
66+
rm -r /usr/src/boost_1_75_0

scripts/docker/buildpack-deps/emscripten.jam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ rule init ( version ? : command * : options * )
7979
# @todo this seems to be the right way, but this is a list somehow
8080
toolset.add-requirements <toolset>emscripten:<testing.launcher>node ;
8181

82-
toolset.flags emscripten.compile STDHDRS $(condition) : /emsdk/emscripten/sdk/system/include ;
83-
toolset.flags emscripten.link STDLIBPATH $(condition) : /emsdk/emscripten/sdk/system/lib ;
84-
toolset.flags emscripten AR $(condition) : /emsdk/emscripten/sdk/emar ;
85-
toolset.flags emscripten RANLIB $(condition) : /emsdk/emscripten/sdk/emranlib ;
82+
toolset.flags emscripten.compile STDHDRS $(condition) : /emsdk/upstream/emscripten/system/include ;
83+
toolset.flags emscripten.link STDLIBPATH $(condition) : /emsdk/upstream/emscripten/system/lib ;
84+
toolset.flags emscripten AR $(condition) : /emsdk/upstream/emscripten/emar ;
85+
toolset.flags emscripten RANLIB $(condition) : /emsdk/upstream/emscripten/emranlib ;
8686
}
8787

8888
type.set-generated-target-suffix EXE : <toolset>emscripten : js ;

0 commit comments

Comments
 (0)