| @@ -34,15 +34,21 @@ endif | |||||
| BASE_FLAGS += -I$(abspath ../include) | BASE_FLAGS += -I$(abspath ../include) | ||||
| BASE_FLAGS += -I$(abspath ../include/simd-compat) | BASE_FLAGS += -I$(abspath ../include/simd-compat) | ||||
| # SSE must always be enabled, even in debug builds | |||||
| ifeq ($(CPU_I386_OR_X86_64),true) | |||||
| BASE_FLAGS += -msse -msse2 -msse3 | |||||
| ifeq ($(WASM),true) | |||||
| BASE_FLAGS += -msimd128 | |||||
| endif | |||||
| endif | |||||
| ifeq ($(HAIKU)$(WASM),true) | ifeq ($(HAIKU)$(WASM),true) | ||||
| BASE_FLAGS += -I$(abspath ../include/linux-compat) | BASE_FLAGS += -I$(abspath ../include/linux-compat) | ||||
| endif | endif | ||||
| ifeq ($(HEADLESS),true) | |||||
| ifeq ($(WITH_LTO),true) | |||||
| ifeq ($(MOD_BUILD)$(WITH_LTO),true) | |||||
| BASE_FLAGS += -ffat-lto-objects | BASE_FLAGS += -ffat-lto-objects | ||||
| endif | endif | ||||
| endif | |||||
| ifneq ($(SYSDEPS),true) | ifneq ($(SYSDEPS),true) | ||||
| BASE_FLAGS += -DZSTDLIB_VISIBILITY= | BASE_FLAGS += -DZSTDLIB_VISIBILITY= | ||||
| @@ -1202,7 +1202,7 @@ BUILD_CXX_FLAGS += -fno-finite-math-only -fno-strict-aliasing | |||||
| ifneq ($(MACOS),true) | ifneq ($(MACOS),true) | ||||
| BUILD_CXX_FLAGS += -faligned-new -Wno-abi | BUILD_CXX_FLAGS += -faligned-new -Wno-abi | ||||
| ifeq ($(MOD_BUILD),true) | ifeq ($(MOD_BUILD),true) | ||||
| BUILD_CXX_FLAGS += -fabi-version=11 | |||||
| BUILD_CXX_FLAGS += -fabi-version=12 | |||||
| endif | endif | ||||
| endif | endif | ||||
| @@ -113,7 +113,7 @@ BUILD_CXX_FLAGS += -fno-finite-math-only -fno-strict-aliasing | |||||
| ifneq ($(MACOS),true) | ifneq ($(MACOS),true) | ||||
| BUILD_CXX_FLAGS += -faligned-new -Wno-abi | BUILD_CXX_FLAGS += -faligned-new -Wno-abi | ||||
| ifeq ($(MOD_BUILD),true) | ifeq ($(MOD_BUILD),true) | ||||
| BUILD_CXX_FLAGS += -fabi-version=11 | |||||
| BUILD_CXX_FLAGS += -fabi-version=12 | |||||
| endif | endif | ||||
| endif | endif | ||||
| @@ -289,8 +289,8 @@ BUILD_CXX_FLAGS += -fno-finite-math-only -fno-strict-aliasing | |||||
| ifneq ($(MACOS),true) | ifneq ($(MACOS),true) | ||||
| BUILD_CXX_FLAGS += -faligned-new -Wno-abi | BUILD_CXX_FLAGS += -faligned-new -Wno-abi | ||||
| ifeq ($(MOD_BUILD),true) | ifeq ($(MOD_BUILD),true) | ||||
| BUILD_CXX_FLAGS += -fabi-version=11 | |||||
| LINK_FLAGS += -fabi-version=11 | |||||
| BUILD_CXX_FLAGS += -fabi-version=12 | |||||
| LINK_FLAGS += -fabi-version=12 | |||||
| endif | endif | ||||
| endif | endif | ||||