Skip to content

Commit ae0d739

Browse files
committed
Do a few test runs to prebuild system libraries and ports.
1 parent 619f117 commit ae0d739

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.swp
2+
test-*

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@ RUN wget https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4
1616
rm cmake_install.sh
1717

1818
ENV PATH="/emsdk:/emsdk/upstream/emscripten:/cmake/bin:${PATH}"
19+
20+
# Prebuilding system libraries so that we don't have to do it again in each use case.
21+
RUN mkdir test-bar && \
22+
touch test-bar/foo.c && \
23+
cd test-bar && \
24+
/emsdk/upstream/emscripten/emcc --use-port=zlib -pthread --bind foo.c -o alpha && \
25+
/emsdk/upstream/emscripten/emcc --use-port=zlib -pthread --bind -O3 foo.c -o bravo && \
26+
cd ../ && \
27+
rm -rf test-bar

0 commit comments

Comments
 (0)