Refs #231. Change the default C compiler to clang on Mac OSX.
This commit is contained in:
parent
960b0c88a7
commit
56f160134d
|
@ -20,6 +20,12 @@ endif
|
||||||
# - Default value is 'cc' which is not always a valid command (e.g. MinGW).
|
# - Default value is 'cc' which is not always a valid command (e.g. MinGW).
|
||||||
ifeq ($(origin CC),default)
|
ifeq ($(origin CC),default)
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
# Change the default compile to clang on Mac OSX.
|
||||||
|
# http://stackoverflow.com/questions/714100/os-detecting-makefile
|
||||||
|
UNAME_S := $(shell uname -s)
|
||||||
|
ifeq ($(UNAME_S),Darwin)
|
||||||
|
CC = clang
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Default Fortran compiler (FC) is selected by f_check.
|
# Default Fortran compiler (FC) is selected by f_check.
|
||||||
|
|
Loading…
Reference in New Issue