[pypy-commit] pypy precompiled-headers: simplify expression
mattip
noreply at buildbot.pypy.org
Tue Feb 4 06:02:20 CET 2014
Author: Matti Picus <matti.picus at gmail.com>
Branch: precompiled-headers
Changeset: r69073:dba9e64cc34c
Date: 2014-02-03 00:01 +0200
http://bitbucket.org/pypy/pypy/changeset/dba9e64cc34c/
Log: simplify expression
diff --git a/rpython/translator/c/genc.py b/rpython/translator/c/genc.py
--- a/rpython/translator/c/genc.py
+++ b/rpython/translator/c/genc.py
@@ -388,7 +388,7 @@
if self.has_profopt():
profopt = self.config.translation.profopt
- mk.definition('ABS_TARGET', '$(shell python -c "import sys,os; print os.path.abspath(sys.argv[1])" $(TARGET))')
+ mk.definition('ABS_TARGET', str(targetdir.join('$(TARGET)')))
mk.definition('DEFAULT_TARGET', 'profopt')
mk.definition('PROFOPT', profopt)
More information about the pypy-commit
mailing list