aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 08d2d81..25589a4 100644
--- a/main.cc
+++ b/main.cc
@@ -151,7 +151,11 @@ static void ReadBootstrapMakefile(const vector<Symbol>& targets,
vector<AST*>* asts) {
string bootstrap = (
"CC:=cc\n"
+#if defined(__APPLE__)
+ "CXX:=c++\n"
+#else
"CXX:=g++\n"
+#endif
"AR:=ar\n"
"MAKE:=kati\n"
// Pretend to be GNU make 3.81, for compatibility.