[svn:parrot] r44304 - trunk/runtime/parrot/library
fperrad at svn.parrot.org
fperrad at svn.parrot.org
Mon Feb 22 20:11:30 UTC 2010
Author: fperrad
Date: Mon Feb 22 20:11:28 2010
New Revision: 44304
URL: https://trac.parrot.org/parrot/changeset/44304
Log:
[distutils] fix cc_run on Windows
Modified:
trunk/runtime/parrot/library/distutils.pir
Modified: trunk/runtime/parrot/library/distutils.pir
==============================================================================
--- trunk/runtime/parrot/library/distutils.pir Mon Feb 22 19:58:33 2010 (r44303)
+++ trunk/runtime/parrot/library/distutils.pir Mon Feb 22 20:11:28 2010 (r44304)
@@ -4525,10 +4525,15 @@
.const string srcname = 'tmp.c'
spew(srcname, source)
.local string exename
- $S0 = get_exe()
- exename = 'tmp' . $S0
+ exename = 'tmp'
.local pmc config
config = get_config()
+ $S0 = config['osname']
+ if $S0 == 'MSWin32' goto L0
+ exename = './' . exename
+ L0:
+ $S0 = get_exe()
+ exename .= $S0
.local string cmd
cmd = config['cc']
cmd .= " "
@@ -4552,8 +4557,7 @@
system(cmd, verbose :named('verbose'), 1 :named('ignore_error'))
unlink(srcname, verbose :named('verbose'))
- cmd = "./" . exename
- $P0 = open cmd, 'rp'
+ $P0 = open exename, 'rp'
$S0 = $P0.'readall'()
$P0.'close'()
More information about the parrot-commits
mailing list