Disable filesystem in C++ codecs (#938)

This commit is contained in:
Ingvar Stepanyan
2021-01-18 12:59:40 +00:00
committed by GitHub
parent b4329c5bed
commit 30528c2330
7 changed files with 178 additions and 281 deletions

View File

@@ -1,6 +1,6 @@
FROM emscripten/emsdk:2.0.8
RUN apt-get update && apt-get install -qqy autoconf libtool pkg-config
ENV CFLAGS "-O3 -flto"
ENV CFLAGS "-O3 -flto -s FILESYSTEM=0"
ENV CXXFLAGS "${CFLAGS} -std=c++17"
ENV LDFLAGS "${CFLAGS} -s PTHREAD_POOL_SIZE=navigator.hardwareConcurrency"
# Build and cache standard libraries with these flags