ModelicaStandardLibrary icon indicating copy to clipboard operation
ModelicaStandardLibrary copied to clipboard

BuildProjects gcc Makefile does not handle MinGW

Open d94pn opened this issue 2 months ago • 2 comments

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

d94pn avatar Oct 24 '25 13:10 d94pn

Did you see #4671, filed 4 months ago? That's for CMake.

beutlich avatar Oct 25 '25 18:10 beutlich

Regarding what aspect? The naming convention for gcc folders?

d94pn avatar Oct 27 '25 08:10 d94pn