[pypy-svn] r51258 - pypy/dist/pypy/translator/c
arigo at codespeak.net
arigo at codespeak.net
Mon Feb 4 14:22:46 CET 2008
Author: arigo
Date: Mon Feb 4 14:22:45 2008
New Revision: 51258
Modified:
pypy/dist/pypy/translator/c/genc.py
Log:
Use "make profopt" instead of "make" when profiling-based
optimizations are enabled.
Modified: pypy/dist/pypy/translator/c/genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/genc.py (original)
+++ pypy/dist/pypy/translator/c/genc.py Mon Feb 4 14:22:45 2008
@@ -306,7 +306,11 @@
compiler = self.getccompiler()
if self.config.translation.gcrootfinder == "asmgcc":
# as we are gcc-only anyway, let's just use the Makefile.
- cmdline = "make -C '%s'" % (self.targetdir,)
+ if compiler.profbased:
+ target = 'profopt'
+ else:
+ target = '' # default target
+ cmdline = "make -C '%s' %s" % (self.targetdir, target)
err = os.system(cmdline)
if err != 0:
raise OSError("failed (see output): " + cmdline)
More information about the Pypy-commit
mailing list