[pypy-svn] r78164 - pypy/trunk/pypy/translator/platform
arigo at codespeak.net
arigo at codespeak.net
Thu Oct 21 13:29:49 CEST 2010
Author: arigo
Date: Thu Oct 21 13:29:47 2010
New Revision: 78164
Modified:
pypy/trunk/pypy/translator/platform/darwin.py
Log:
Use $CC on mac too. Fixes test_gcc_options.
Modified: pypy/trunk/pypy/translator/platform/darwin.py
==============================================================================
--- pypy/trunk/pypy/translator/platform/darwin.py (original)
+++ pypy/trunk/pypy/translator/platform/darwin.py Thu Oct 21 13:29:47 2010
@@ -14,7 +14,10 @@
def __init__(self, cc=None):
if cc is None:
- cc = 'gcc'
+ try:
+ cc = os.environ['CC']
+ except KeyError:
+ cc = 'gcc'
self.cc = cc
def _args_for_shared(self, args):
More information about the Pypy-commit
mailing list