Use better threads

This commit is contained in:
Matt McWilliams 2021-09-15 20:26:18 -04:00
parent 33985807d7
commit 40cbd61e3b
1 changed files with 15 additions and 1 deletions

View File

@ -1,9 +1,23 @@
EMAIL="hi@mmcwilliams.com"
NAME="Matt McWilliams"
CFLAGS="-pthread" #-DBOOST_THREAD_USE_LIB -s USE_BOOST_HEADERS=1
LDFLAGS="$CFLAGS -s INITIAL_MEMORY=33554432 -Wl -V"
ARGS=(
#LIBS="-lboost_system -lboost_thread -lboost_date_time"
COMPILED_BY="$NAME <$EMAIL>"
CC=emcc
CXX=em++
CFLAGS="$CFLAGS"
CXXFLAGS="$CFLAGS"
LDFLAGS="$LDFLAGS"
--host=wasm32
)
cd unix/
sh prebuild.sh
cd ../
emconfigure ./configure COMPILED_BY="$NAME <$EMAIL>" LDFLAGS="-Wl,-V"
emconfigure ./configure "${ARGS[@]}"
exit 1
emmake make -j2