Skip to content

Commit

Permalink
Do a few test runs to prebuild system libraries and ports.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 2, 2024
1 parent 619f117 commit 7e5f563
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.swp
test-*
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,13 @@ RUN wget https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4
bash cmake_install.sh --prefix=cmake --skip-license && \
rm cmake_install.sh

# Prebuilding system libraries so that we don't have to do it again in each use case.
RUN mkdir test-bar && \
touch test-bar/foo.c && \
cd test-bar && \
emcc --use-port=zlib -pthread --bind foo.c -o alpha \
emcc --use-port=zlib -pthread --bind -O3 foo.c -o bravo \
cd ../ && \
rm -rf test-bar

ENV PATH="/emsdk:/emsdk/upstream/emscripten:/cmake/bin:${PATH}"

0 comments on commit 7e5f563

Please sign in to comment.