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),)
|
|
|
|
mingw32_CFLAGS += -flto
|
2021-08-31 13:34:43 +08:00
|
|
|
mingw32_CXXFLAGS += -flto
|
2021-11-16 10:01:38 +08:00
|
|
|
mingw32_LDFLAGS += -flto
|
|
|
|
endif
|
|
|
|
|
2014-09-23 17:00:31 -04:00
|
|
|
mingw32_release_CFLAGS=-O2
|
|
|
|
mingw32_release_CXXFLAGS=$(mingw32_release_CFLAGS)
|
|
|
|
|
|
|
|
mingw32_debug_CFLAGS=-O1
|
|
|
|
mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS)
|
|
|
|
|
|
|
|
mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
|
2019-07-09 14:40:45 -04:00
|
|
|
|
2022-02-19 13:00:45 +02:00
|
|
|
mingw32_cmake_system=Windows
|