[Numpy-svn] r4046 - numpy.sunperf/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Tue Sep 18 00:30:54 CDT 2007


Author: cdavid
Date: 2007-09-18 00:30:49 -0500 (Tue, 18 Sep 2007)
New Revision: 4046

Modified:
   numpy.sunperf/numpy/distutils/sunccompiler.py
Log:
Replace suncc call by cc on solaris for sun compilers

Modified: numpy.sunperf/numpy/distutils/sunccompiler.py
===================================================================
--- numpy.sunperf/numpy/distutils/sunccompiler.py	2007-09-16 14:33:39 UTC (rev 4045)
+++ numpy.sunperf/numpy/distutils/sunccompiler.py	2007-09-18 05:30:49 UTC (rev 4046)
@@ -5,9 +5,12 @@
 class SunCCompiler(UnixCCompiler):
     """ A modified Sun compiler compatible with an gcc built Python. """
     compiler_type = 'sun'
-    # Use suncc instead of cc, because it makes it more obvious to follow
-    # what's going on when several compilers are available.
-    cc_exe = 'suncc'
+    if platform[:5] == 'linux':
+        # Use suncc instead of cc, because it makes it more obvious to follow
+        # what's going on when several compilers are available on linux.
+        cc_exe = 'suncc'
+    else:
+        cc_exe = 'cc'
 
     def __init__ (self, verbose=0, dry_run=0, force=0):
         UnixCCompiler.__init__ (self, verbose,dry_run, force)



More information about the Numpy-svn mailing list