Skip to content

Commit

Permalink
Merged revision(s) 20684-20686 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[New] build: Makefile: MinGW-w64: Add WINDOWS_CRT option with values [crtdll,msvcrt,ucrt].
........
[Doc] libopenmpt: Update changelog.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@20687 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Apr 29, 2024
1 parent adf79d6 commit 60d3705
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 13 additions & 3 deletions build/make/config-mingw-w64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,27 @@ else
$(error unknown WINDOWS_ARCH)
endif

ifeq ($(WINDOWS_CRT),)
MINGW_CRT = mingw32
else ifeq ($(WINDOWS_CRT),crtdll)
MINGW_CRT = mingw32crt
else ifeq ($(WINDOWS_CRT),msvcrt)
MINGW_CRT = mingw32
else ifeq ($(WINDOWS_CRT),ucrt)
MINGW_CRT = mingw32ucrt
endif

ifeq ($(origin CC),default)
CC = $(MINGW_ARCH)-w64-mingw32-gcc$(MINGW_FLAVOUR)
CC = $(MINGW_ARCH)-w64-$(MINGW_CRT)-gcc$(MINGW_FLAVOUR)
endif
ifeq ($(origin CXX),default)
CXX = $(MINGW_ARCH)-w64-mingw32-g++$(MINGW_FLAVOUR)
CXX = $(MINGW_ARCH)-w64-$(MINGW_CRT)-g++$(MINGW_FLAVOUR)
endif
ifeq ($(origin LD),default)
LD = $(CXX)
endif
ifeq ($(origin AR),default)
AR = $(MINGW_ARCH)-w64-mingw32-ar$(MINGW_FLAVOUR)
AR = $(MINGW_ARCH)-w64-$(MINGW_CRT)-ar$(MINGW_FLAVOUR)
endif

ifneq ($(STDCXX),)
Expand Down
3 changes: 3 additions & 0 deletions doc/libopenmpt/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ is just a high-level summary.
`libopenmpt/bindings/freebasic/libopenmpt_ext.bi` were missing from the
Autotools package.

* [**New**] New `Makefile` `CONFIG=mingw-w64` option
`WINDOWS_CRT=[crtdll,msvcrt,ucrt]` to select the toolchain CRT library.

* M15: Loosen SoundTracker file rejection heuristics a bit to allow loading of
schmokk.mod and scramble_2.mod. Other heuristics has been tightened a bit.
* MOD: Change VBlank timing heuristic to always assume CIA timing when long
Expand Down

0 comments on commit 60d3705

Please sign in to comment.