Browse Source

Use "-Wa,-mbig-obj" for juce debug builds, cleanup

Closes #1122

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
894d838664
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 14 additions and 7 deletions
  1. +7
    -6
      source/modules/juce_audio_processors/Makefile
  2. +7
    -1
      source/modules/juce_gui_basics/Makefile

+ 7
- 6
source/modules/juce_audio_processors/Makefile View File

@@ -12,20 +12,21 @@ include ../Makefile.mk

BUILD_CXX_FLAGS += $(JUCE_AUDIO_PROCESSORS_FLAGS) -I$(CWD)/includes/vst3sdk -I..

ifeq ($(CARLA_VESTIGE_HEADER),true)
BUILD_CXX_FLAGS += -DVESTIGE_HEADER
else
# needed for bloated juce
ifeq ($(DEBUG),true)
BUILD_CXX_FLAGS += -Wa,-mbig-obj
endif

# needed by vst3
BUILD_CXX_FLAGS += -w
ifeq ($(DEBUG),true)
BUILD_CXX_FLAGS += -DDEVELOPMENT -D_DEBUG
else
BUILD_CXX_FLAGS += -DRELEASE
endif

# needed by vst3 on mingw
ifeq ($(WIN32),true)
BUILD_CXX_FLAGS += -D_NATIVE_WCHAR_T_DEFINED -D__wchar_t=wchar_t -fpermissive
endif
BUILD_CXX_FLAGS += -D_NATIVE_WCHAR_T_DEFINED -D__wchar_t=wchar_t -fpermissive -Wno-unknown-pragmas
endif

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


+ 7
- 1
source/modules/juce_gui_basics/Makefile View File

@@ -12,8 +12,14 @@ include ../Makefile.mk

BUILD_CXX_FLAGS += $(JUCE_GUI_BASICS_FLAGS) -I..

# needed for bloated juce
ifeq ($(DEBUG),true)
BUILD_CXX_FLAGS += -Wa,-mbig-obj
endif

# needed for mingw juce
ifeq ($(WIN32),true)
BUILD_CXX_FLAGS += -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-strict-overflow
BUILD_CXX_FLAGS += -Wno-missing-field-initializers -Wno-multichar
endif

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


Loading…
Cancel
Save