diff options
author | ZoRo <dos21h@gmail.com> | 2021-08-27 09:32:54 +0100 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2021-08-27 09:32:54 +0100 |
commit | ec585ba33f61381e5b2095c2386083ea843b2c47 (patch) | |
tree | 44673c326a3998a5832ca58a8cd2f5e173897161 /Build/Makefile | |
parent | feb72389aa4e1070fcbc888280ea65b178176460 (diff) | |
download | NaiveFFT-ec585ba33f61381e5b2095c2386083ea843b2c47.tar.gz NaiveFFT-ec585ba33f61381e5b2095c2386083ea843b2c47.zip |
Demo wasm page
Diffstat (limited to 'Build/Makefile')
-rw-r--r-- | Build/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/Makefile b/Build/Makefile index f56677d..06076fb 100644 --- a/Build/Makefile +++ b/Build/Makefile @@ -2,7 +2,7 @@ EMCC=emcc CC=gcc SOURCEDIR=../NaiveFFT LDFLAGS=-lm -EM_LDFALGS=-s LLD_REPORT_UNDEFINED +EM_LDFALGS=-s USE_SDL=2 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s LLD_REPORT_UNDEFINED -s USE_GLFW=3 make: @@ -10,8 +10,9 @@ make: $(CC) -c $(SOURCEDIR)/fft.c -g3 $(CC) main.o fft.o -o NaiveFFT $(LDFLAGS) +#https://github.com/emscripten-core/emscripten/issues/6882 no malloc emcc: - $(EMCC) $(SOURCEDIR)/main.c $(SOURCEDIR)/fft.c -s WASM=1 -O3 -o index.js $(EM_LDFALGS) -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' + $(EMCC) $(SOURCEDIR)/main.c $(SOURCEDIR)/fft.c -s WASM=1 -O0 -o index.js $(EM_LDFALGS) -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' web: |