Skip to content

BuildProjects gcc Makefile does not handle MinGW #4702

@d94pn

Description

@d94pn

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions