More tweaks for future wasm

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-11-09 16:01:49 +00:00
parent cb016113d6
commit 5465b44705
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
5 changed files with 35 additions and 20 deletions

View file

@ -144,8 +144,15 @@ BASE_FLAGS += -I../Rack/dep/nanosvg/src
BASE_FLAGS += -I../Rack/dep/oui-blendish
BASE_FLAGS += -pthread
ifeq ($(HEADLESS),true)
BASE_FLAGS += -DHEADLESS
endif
ifeq ($(WASM),true)
BASE_FLAGS += -DNANOVG_GLES2=1
BASE_FLAGS += -msse -msse2 -msse3 -msimd128
else
BASE_FLAGS += -pthread
endif
ifeq ($(WINDOWS),true)
@ -155,10 +162,6 @@ BASE_FLAGS += -I../../include/mingw-compat
BASE_FLAGS += -I../../include/mingw-std-threads
endif
ifeq ($(HEADLESS),true)
BASE_FLAGS += -DHEADLESS
endif
ifeq ($(WITH_LTO),true)
BASE_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects
endif