projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
960b0c8
)
Refs #231. Change the default C compiler to clang on Mac OSX.
author
Zhang Xianyi
<traits.zhang@gmail.com>
Thu, 13 Jun 2013 14:15:19 +0000
(22:15 +0800)
committer
Zhang Xianyi
<traits.zhang@gmail.com>
Thu, 13 Jun 2013 14:15:19 +0000
(22:15 +0800)
Makefile.system
patch
|
blob
|
history
diff --git
a/Makefile.system
b/Makefile.system
index
f48e5b4
..
42e6fa8
100644
(file)
--- a/
Makefile.system
+++ b/
Makefile.system
@@
-20,6
+20,12
@@
endif
# - Default value is 'cc' which is not always a valid command (e.g. MinGW).
ifeq ($(origin CC),default)
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
# Default Fortran compiler (FC) is selected by f_check.