summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/apple16
1 files changed, 13 insertions, 3 deletions
diff --git a/config/apple b/config/apple
index be0e9f9..5203695 100644
--- a/config/apple
+++ b/config/apple
@@ -34,17 +34,17 @@ if test "X-" = "X-$CC"; then
# Production
PROD_CFLAGS="-O3"
- PROD_CPPFLAGS="-O3"
+ PROD_CPPFLAGS=
# Debug
DEBUG_CFLAGS="-g -O0"
- DEBUG_CPPFLAGS="-g -O0"
+ DEBUG_CPPFLAGS=
# Profile
# Use this for profiling with gprof
# Just "-g" for now. More later.
PROFILE_CFLAGS="-g"
- PROFILE_CPPFLAGS="-g"
+ PROFILE_CPPFLAGS=
;;
esac
fi
@@ -103,6 +103,16 @@ if test "X-" = "X-$CXX"; then
esac
fi
+case $CXX_BASENAME in
+ clang++)
+ PROD_CXXFLAGS="-O3"
+ DEBUG_CXXFLAGS="-g -O0"
+ # Use this for profiling with gprof
+ # Just "-g" for now. More later.
+ PROFILE_CXXFLAGS="-g"
+ ;;
+esac
+
# compiler version strings
case $CC in
clang)