Revision 5f8c5457900efe15ca3b0a6a63c1a7d378b2ea88 authored by Sean Talts on 14 April 2017, 16:01:20 UTC, committed by Sean Talts on 14 April 2017, 16:01:20 UTC
1 parent 5f04304
detect_cc
##
# Detects:
# - CC_TYPE: {g++, clang++, mingw32-g++, other}
# - CC_MAJOR: major version of CC
# - CC_MINOR: minor version of CC
##
ifneq (,$(findstring clang++,$(CC)))
CC_TYPE ?= clang++
endif
ifneq (,$(findstring mingw32-g++,$(CC)))
CC_TYPE ?= mingw32-g++
endif
ifneq (,$(findstring i686-w64-mingw32-g++,$(CC)))
CFLAGS += -m32
endif
ifneq (,$(findstring g++,$(CC)))
CC_TYPE ?= g++
endif
CC_TYPE ?= other
CC_MAJOR := $(shell $(CC) -dumpversion 2>&1 | cut -d'.' -f1)
CC_MINOR := $(shell $(CC) -dumpversion 2>&1 | cut -d'.' -f2)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...