Skip to content

Commit

Permalink
[Fix] build: Makefile: MinGW: Set MPT_COMPILER_NOALLOCAH=1 to fix Vor…
Browse files Browse the repository at this point in the history
…bis build.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22308 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Nov 25, 2024
1 parent e3c4922 commit 88314c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/make/config-mingw-w64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ else
$(error unknown WINDOWS_VERSION)
endif

MPT_COMPILER_NOALLOCAH=1

ifneq ($(MINGW_COMPILER),clang)
# See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115049>.
MPT_COMPILER_NOIPARA=1
Expand Down
2 changes: 2 additions & 0 deletions build/make/config-mingw.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ CXXFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -ffunction-sections -fdata-sections
LDFLAGS += -Wl,--gc-sections

MPT_COMPILER_NOALLOCAH=1

CXXFLAGS += -march=i586 -m80387 -mtune=pentium
CFLAGS += -march=i586 -m80387 -mtune=pentium

Expand Down
2 changes: 2 additions & 0 deletions build/make/config-mingw32crt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ CXXFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -ffunction-sections -fdata-sections
LDFLAGS += -Wl,--gc-sections

MPT_COMPILER_NOALLOCAH=1

CXXFLAGS += -march=i386 -m80387 -mtune=i486
CFLAGS += -march=i386 -m80387 -mtune=i486

Expand Down

0 comments on commit 88314c0

Please sign in to comment.