Skip to content

Commit

Permalink
Fix wasm compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererXII committed Jul 11, 2023
1 parent 3996216 commit 901085e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ else
CPPFLAGS += -Wno-unused-parameter
CPPFLAGS += -DUSE_WASM_SIMD -msimd128
CPPFLAGS += -DUSE_SSE42 -msse4.2
CPPFLAGS += -march=wasm32
# CPPFLAGS += -march=corei7
CPPFLAGS += -s USE_PTHREADS=1
CPPFLAGS += -pthread
CPPFLAGS += -s STRICT=1
LDFLAGS += --pre-js wasm_pre.js
# LDFLAGS += --preload-file eval/nn.bin
Expand All @@ -196,8 +194,7 @@ else
# -s PTHREAD_POOL_SIZE_STRICT=32
LDFLAGS += -s FILESYSTEM=1 -s EXIT_RUNTIME=0 -s "EXPORTED_RUNTIME_METHODS=['FS','ccall']"
LDFLAGS += -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=$(EM_INITIAL_MEMORY_SIZE) -s MAXIMUM_MEMORY=4294967296
LDFLAGS += -s TOTAL_STACK=67108864
LDFLAGS += -s LLD_REPORT_UNDEFINED
LDFLAGS += -s STACK_SIZE=67108864
# LDFLAGS += -s PROXY_TO_PTHREAD
# LDFLAGS += -s ALLOW_UNIMPLEMENTED_SYSCALLS
# LDFLAGS += -s ASSERTIONS
Expand Down

0 comments on commit 901085e

Please sign in to comment.