[svn:parrot] r45273 - trunk/runtime/parrot/library

fperrad at svn.parrot.org fperrad at svn.parrot.org
Mon Mar 29 12:28:37 UTC 2010


Author: fperrad
Date: Mon Mar 29 12:28:36 2010
New Revision: 45273
URL: https://trac.parrot.org/parrot/changeset/45273

Log:
[distutils] the Sun's compiler on OpenSolaris don't like #line.
see http://rt.perl.org/rt3/Public/Bug/Display.html?id=66560

Modified:
   trunk/runtime/parrot/library/distutils.pir

Modified: trunk/runtime/parrot/library/distutils.pir
==============================================================================
--- trunk/runtime/parrot/library/distutils.pir	Mon Mar 29 12:14:29 2010	(r45272)
+++ trunk/runtime/parrot/library/distutils.pir	Mon Mar 29 12:28:36 2010	(r45273)
@@ -1351,6 +1351,10 @@
     pmc2c .= " "
     $S0 = get_tool('build/pmc2c.pl')
     pmc2c .= $S0
+    $S0 = config['osname']
+    unless $S0 == 'solaris' goto L1
+    pmc2c .= " --no-lines"
+  L1:
     .local string pmc2c_includes
     pmc2c_includes = "--include "
     $S0 = get_srcdir()
@@ -1410,6 +1414,10 @@
     cmd .= " "
     $S0 = get_tool('build/pmc2c.pl')
     cmd .= $S0
+    $S0 = config['osname']
+    unless $S0 == 'solaris' goto L0
+    cmd .= " --no-lines"
+  L0:
     cmd .= " --library "
 #    $S0 = dirname(src)
 #    cmd .= $S0


More information about the parrot-commits mailing list