mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r25654] Bug fix: HDFFV-8933
Description: Mac has changed to use the clang/clang++ compilers but compiler settings for production, debug and profile were not setup. Solution: Setup default values for PROD_CFLAGS, PROD_CPPFLAGS, DEBUG_CFLAGS, DEBUG_CPPFLAGS. PROFILE_CFLAGS and PROFILE_CPPFLAGS were set too but clang does not -pg or such for profiling. Need to fix it later. Tested: duck, swallow, and quail using --enable-production.
This commit is contained in:
parent
87bed2c752
commit
cbd0112b16
14
config/apple
14
config/apple
@ -31,6 +31,20 @@ if test "X-" = "X-$CC"; then
|
||||
*)
|
||||
CC=clang
|
||||
CC_BASENAME=clang
|
||||
|
||||
# Production
|
||||
PROD_CFLAGS="-O3"
|
||||
PROD_CPPFLAGS="-O3"
|
||||
|
||||
# Debug
|
||||
DEBUG_CFLAGS="-g -O0"
|
||||
DEBUG_CPPFLAGS="-g -O0"
|
||||
|
||||
# Profile
|
||||
# Use this for profiling with gprof
|
||||
# Just "-g" for now. More later.
|
||||
PROFILE_CFLAGS="-g"
|
||||
PROFILE_CPPFLAGS="-g"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user