summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/config/Make.rules.Darwin8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/config/Make.rules.Darwin b/cpp/config/Make.rules.Darwin
index 435f7fdd832..a3786564bf7 100644
--- a/cpp/config/Make.rules.Darwin
+++ b/cpp/config/Make.rules.Darwin
@@ -11,7 +11,13 @@
# This file is included by Make.rules when uname is Darwin.
#
-CXX = clang++
+ifeq ($(DEVELOPER_PATH),)
+ DEVELOPER_PATH = $(shell xcode-select -print-path)
+endif
+
+TOOLCHAIN_BIN_DIR = $(DEVELOPER_PATH)/Toolchains/XcodeDefault.xctoolchain/usr/bin
+CXX = $(TOOLCHAIN_BIN_DIR)/clang++
+
#CXX = g++
CXXFLAGS = -Wall -D_REENTRANT