[pypy-svn] r54386 - pypy/dist/pypy/translator/c
arigo at codespeak.net
arigo at codespeak.net
Sun May 4 11:49:28 CEST 2008
Author: arigo
Date: Sun May 4 11:49:26 2008
New Revision: 54386
Modified:
pypy/dist/pypy/translator/c/genc.py
Log:
It seems that GNU Make < 3.81 has no function $(abspath).
Workaround.
Modified: pypy/dist/pypy/translator/c/genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/genc.py (original)
+++ pypy/dist/pypy/translator/c/genc.py Sun May 4 11:49:26 2008
@@ -875,9 +875,12 @@
profile:
\t$(MAKE) CFLAGS="-g -pg $(CFLAGS)" LDFLAGS="-pg $(LDFLAGS)" $(TARGET)
+# it seems that GNU Make < 3.81 has no function $(abspath)
+ABS_TARGET = $(shell python -c "import sys,os; print os.path.abspath(sys.argv[1])" $(TARGET))
+
profopt:
\t$(MAKE) CFLAGS="-fprofile-generate $(CFLAGS)" LDFLAGS="-fprofile-generate $(LDFLAGS)" $(TARGET)
-\tcd $(PYPYDIR)/translator/goal && $(abspath $(TARGET)) $(PROFOPT)
+\tcd $(PYPYDIR)/translator/goal && $(ABS_TARGET) $(PROFOPT)
\t$(MAKE) clean_noprof
\t$(MAKE) CFLAGS="-fprofile-use $(CFLAGS)" LDFLAGS="-fprofile-use $(LDFLAGS)" $(TARGET)
'''
More information about the pypy-svn
mailing list