ModelicaStandardLibrary
ModelicaStandardLibrary copied to clipboard
BuildProjects gcc Makefile does not handle MinGW
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
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
Did you see #4671, filed 4 months ago? That's for CMake.
Regarding what aspect? The naming convention for gcc folders?