summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index e595da74ce..2c44090c3c 100755
--- a/configure
+++ b/configure
@@ -9,9 +9,10 @@ import sys
import shutil
import string
-# gcc and g++ as defaults matches what GYP's Makefile generator does.
-CC = os.environ.get('CC', 'gcc')
-CXX = os.environ.get('CXX', 'g++')
+# gcc and g++ as defaults matches what GYP's Makefile generator does,
+# except on OS X.
+CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'gcc')
+CXX = os.environ.get('CXX', 'c++' if sys.platform == 'darwin' else 'g++')
root_dir = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(root_dir, 'tools', 'gyp', 'pylib'))