2024-10-01 19:04:24 +02:00
|
|
|
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-gcc-posix"),)
|
|
|
|
mingw32_CC := $(host)-gcc-posix
|
|
|
|
endif
|
2022-01-25 17:35:24 +02:00
|
|
|
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-g++-posix"),)
|
2021-05-28 09:28:14 +03:00
|
|
|
mingw32_CXX := $(host)-g++-posix
|
|
|
|
endif
|
|
|
|
|
2021-08-31 13:34:43 +08:00
|
|
|
mingw32_CFLAGS=-pipe -std=$(C_STANDARD)
|
2021-09-09 14:21:01 +08:00
|
|
|
mingw32_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
2021-11-16 10:01:38 +08:00
|
|
|
|
|
|
|
ifneq ($(LTO),)
|
2022-06-16 10:19:49 +01:00
|
|
|
mingw32_AR = $(host_toolchain)gcc-ar
|
|
|
|
mingw32_NM = $(host_toolchain)gcc-nm
|
|
|
|
mingw32_RANLIB = $(host_toolchain)gcc-ranlib
|
2021-11-16 10:01:38 +08:00
|
|
|
endif
|
|
|
|
|
2014-09-23 17:00:31 -04:00
|
|
|
mingw32_release_CFLAGS=-O2
|
|
|
|
mingw32_release_CXXFLAGS=$(mingw32_release_CFLAGS)
|
|
|
|
|
2024-02-29 10:01:10 -05:00
|
|
|
mingw32_debug_CFLAGS=-O1 -g
|
2014-09-23 17:00:31 -04:00
|
|
|
mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS)
|
|
|
|
|
|
|
|
mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
|
2019-07-09 14:40:45 -04:00
|
|
|
|
2024-05-15 08:19:02 +01:00
|
|
|
mingw32_cmake_system_name=Windows
|
2024-05-15 11:01:31 +01:00
|
|
|
# Windows 7 (NT 6.1).
|
|
|
|
mingw32_cmake_system_version=6.1
|