mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r23441] HDFFV-8245: bug fix. Snow Leopard (darwin 10.X) does not have clang++.
Reversed it to use gcc/g++ as the default C and CXX compilers for Darwin 10.X systems. Tested: duck (darwin 11), wren (darwin 12) and fred (darwin 10).
This commit is contained in:
parent
1f6cd26a93
commit
6e1122dda4
15
config/apple
15
config/apple
@ -20,10 +20,19 @@
|
||||
#
|
||||
# See BlankForm in this directory for details.
|
||||
|
||||
# The default compiler is `clang'
|
||||
# The default compiler is `clang'.
|
||||
# No support for OS older than darwin 10.X.
|
||||
if test "X-" = "X-$CC"; then
|
||||
CC=clang
|
||||
CC_BASENAME=clang
|
||||
case "$host_os" in
|
||||
darwin10.*) # Snow Leopard. Use gcc/g++ because clang++ is not available.
|
||||
CC=gcc
|
||||
CC_BASENAME=gcc
|
||||
;;
|
||||
*)
|
||||
CC=clang
|
||||
CC_BASENAME=clang
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Figure out compiler flags
|
||||
|
Loading…
Reference in New Issue
Block a user