SIMD must always be enabled, even in debug builds

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-12-29 10:53:26 +00:00
parent 70745cd62d
commit cebb66f290
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 35 additions and 6 deletions

View file

@ -1187,8 +1187,17 @@ ifeq ($(HEADLESS),true)
BASE_FLAGS += -DHEADLESS
endif
ifneq (,$(findstring true,$(DEBUG)$(NOSIMD)))
# SIMD must always be enabled, even in debug builds
ifeq ($(NOSIMD),true)
BASE_FLAGS += -DCARDINAL_NOSIMD
else ifeq ($(DEBUG),true)
ifeq ($(WASM),true)
BASE_FLAGS += -msse -msse2 -msse3 -msimd128
else ifeq ($(CPU_ARM32),true)
BASE_FLAGS += -mfpu=neon-vfpv4 -mfloat-abi=hard
else ifeq ($(CPU_I386_OR_X86_64),true)
BASE_FLAGS += -msse -msse2 -mfpmath=sse
endif
endif
ifeq ($(BSD)$(WASM),true)