-
Notifications
You must be signed in to change notification settings - Fork 176
Open
Description
It would be quite useful if the Resources/BuildProjects/gcc/Makefile could handle also MinGW.
Below additon will support also MinGW64. It however remains to work out the naming convention for the MinGW variants, like for "gcctdm" etc. In the addition all folders are simply named according to "gcc".
GCC_VERSION_LINE := $(shell $(CC) --version | head -n 1)
ifeq ($(findstring MinGW,$(GCC_VERSION_LINE)),MinGW)
MINGW_FOLDER_SUFFIX := $(shell echo "$(GCC_VERSION_LINE)" | sed "s/.* //" | sed "s/[^0-9]//g")
endif
# TODO: work out a folder naming convention for MinGW, handling alternatives to gcctdm, e.g. gccxposixseh
ifneq ($(strip $(MINGW_FOLDER_SUFFIX)),)
TARGETDIR = win64/gcc$(MINGW_FOLDER_SUFFIX)
else
TARGETDIR = linux64
endif
Metadata
Metadata
Assignees
Labels
No labels