Revision 3c4779915488bf86af438c543b75ed196f02401f authored by Daniel Lee on 24 October 2013, 18:39:13 UTC, committed by Daniel Lee on 24 October 2013, 18:39:13 UTC
2 parent s e67c42e + 1fb9d1d
Raw File
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 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)

back to top