Skip to content

Commit

Permalink
Add workaround for old freetype (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen authored Sep 20, 2024
1 parent be0e296 commit bf4d142
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ RUN rm -rf /tmp/rig
RUN rm -rf libs/download libs/build src/node_modules R/download
RUN cd src && make clean

# Temp workaround for https://github.com/emscripten-core/emscripten/issues/22571
RUN sed -i.bak 's|#define TYPEOF|#define FT_TYPEOF|g' /opt/emsdk/upstream/emscripten/cache/sysroot/include/freetype2/config/ftconfig.h

# Step 3: Squash docker image layers
FROM webr
COPY --from=scratch / /
Expand Down

0 comments on commit bf4d142

Please sign in to comment.