Browse Source

Fix MOD builds

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.12
falkTX 2 years ago
parent
commit
bf4be75cb7
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 13 additions and 16 deletions
  1. +0
    -8
      deps/Makefile
  2. +6
    -5
      plugins/Makefile
  3. +6
    -1
      src/Makefile
  4. +1
    -2
      src/Makefile.cardinal.mk

+ 0
- 8
deps/Makefile View File

@@ -34,14 +34,6 @@ endif
BASE_FLAGS += -I$(abspath ../include)
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)
BASE_FLAGS += -I$(abspath ../include/linux-compat)
endif


+ 6
- 5
plugins/Makefile View File

@@ -1145,9 +1145,9 @@ BASE_FLAGS += -I../src/Rack/dep/pffft

# SSE must always be enabled, even in debug builds
ifeq ($(CPU_I386_OR_X86_64),true)
BASE_FLAGS += -msse -msse2 -msse3
BASE_FLAGS += -msse -msse2
ifeq ($(WASM),true)
BASE_FLAGS += -msimd128
BASE_FLAGS += -msse3 -msimd128
endif
endif

@@ -1202,7 +1202,7 @@ BUILD_CXX_FLAGS += -fno-finite-math-only -fno-strict-aliasing
ifneq ($(MACOS),true)
BUILD_CXX_FLAGS += -faligned-new -Wno-abi
ifeq ($(MOD_BUILD),true)
BUILD_CXX_FLAGS += -fabi-version=12
BUILD_CXX_FLAGS += -std=gnu++17
endif
endif

@@ -1212,8 +1212,9 @@ BUILD_CXX_FLAGS += -U_GLIBCXX_ASSERTIONS -Wp,-U_GLIBCXX_ASSERTIONS
# Ignore bad behaviour from Rack API
BUILD_CXX_FLAGS += -Wno-format-security

ifeq ($(WASM),true)
BUILD_CXX_FLAGS += -fexceptions
# Ignore warnings from simde
ifeq ($(MOD_BUILD),true)
BUILD_CXX_FLAGS += -Wno-overflow
endif

# --------------------------------------------------------------


+ 6
- 1
src/Makefile View File

@@ -113,7 +113,7 @@ BUILD_CXX_FLAGS += -fno-finite-math-only -fno-strict-aliasing
ifneq ($(MACOS),true)
BUILD_CXX_FLAGS += -faligned-new -Wno-abi
ifeq ($(MOD_BUILD),true)
BUILD_CXX_FLAGS += -fabi-version=12
BUILD_CXX_FLAGS += -std=gnu++17
endif
endif

@@ -127,6 +127,11 @@ BUILD_CXX_FLAGS += -U_GLIBCXX_ASSERTIONS -Wp,-U_GLIBCXX_ASSERTIONS
# Ignore bad behaviour from Rack API
BUILD_CXX_FLAGS += -Wno-format-security

# Ignore warnings from simde
ifeq ($(MOD_BUILD),true)
BUILD_CXX_FLAGS += -Wno-overflow
endif

# --------------------------------------------------------------
# Rack files to build



+ 1
- 2
src/Makefile.cardinal.mk View File

@@ -289,8 +289,7 @@ BUILD_CXX_FLAGS += -fno-finite-math-only -fno-strict-aliasing
ifneq ($(MACOS),true)
BUILD_CXX_FLAGS += -faligned-new -Wno-abi
ifeq ($(MOD_BUILD),true)
BUILD_CXX_FLAGS += -fabi-version=12
LINK_FLAGS += -fabi-version=12
BUILD_CXX_FLAGS += -std=gnu++17
endif
endif



Loading…
Cancel
Save