[pypy-svn] r66948 - pypy/branch/asmgcc-mingw32/pypy/translator/c
afa at codespeak.net
afa at codespeak.net
Tue Aug 18 22:55:19 CEST 2009
Author: afa
Date: Tue Aug 18 22:55:17 2009
New Revision: 66948
Modified:
pypy/branch/asmgcc-mingw32/pypy/translator/c/genc.py
Log:
work around the lack of executable scripts on Windows
Modified: pypy/branch/asmgcc-mingw32/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/asmgcc-mingw32/pypy/translator/c/genc.py (original)
+++ pypy/branch/asmgcc-mingw32/pypy/translator/c/genc.py Tue Aug 18 22:55:17 2009
@@ -489,8 +489,14 @@
mk.definition('GCMAPFILES', gcmapfiles)
mk.definition('OBJECTS', '$(ASMFILES) gcmaptable.s')
mk.rule('%.s', '%.c', '$(CC) $(CFLAGS) -frandom-seed=$< -o $@ -S $< $(INCLUDEDIRS)')
- mk.rule('%.gcmap', '%.s', '$(PYPYDIR)/translator/c/gcc/trackgcroot.py -t $< > $@ || (rm -f $@ && exit 1)')
- mk.rule('gcmaptable.s', '$(GCMAPFILES)', '$(PYPYDIR)/translator/c/gcc/trackgcroot.py $(GCMAPFILES) > $@ || (rm -f $@ && exit 1)')
+ if sys.platform == 'win32':
+ python = sys.executable.replace('\\', '/') + ' '
+ else:
+ python = ""
+ mk.rule('%.gcmap', '%.s',
+ python + '$(PYPYDIR)/translator/c/gcc/trackgcroot.py -t $< > $@ || (rm -f $@ && exit 1)')
+ mk.rule('gcmaptable.s', '$(GCMAPFILES)',
+ python + '$(PYPYDIR)/translator/c/gcc/trackgcroot.py $(GCMAPFILES) > $@ || (rm -f $@ && exit 1)')
mk.write()
#self.translator.platform,
More information about the Pypy-commit
mailing list