[pypy-svn] r39890 - in pypy/dist/pypy/translator/c: . test

arigo at codespeak.net arigo at codespeak.net
Sun Mar 4 15:43:08 CET 2007


Author: arigo
Date: Sun Mar  4 15:43:06 2007
New Revision: 39890

Modified:
   pypy/dist/pypy/translator/c/genc.py
   pypy/dist/pypy/translator/c/test/test_genc.py
Log:
* compile with -g in "make profile": necessary to have the results
  properly reported!

* honor --view in the compile() genc tests in general.



Modified: pypy/dist/pypy/translator/c/genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/genc.py	(original)
+++ pypy/dist/pypy/translator/c/genc.py	Sun Mar  4 15:43:06 2007
@@ -871,7 +871,7 @@
 \tmake CFLAGS="-g -DRPY_ASSERT -DNO_OBMALLOC"
 
 profile:
-\tmake CFLAGS="-pg $(CFLAGS)" LDFLAGS="-pg $(LDFLAGS)"
+\tmake CFLAGS="-g -pg $(CFLAGS)" LDFLAGS="-pg $(LDFLAGS)"
 
 profopt:
 \tmake CFLAGS="-fprofile-generate $(CFLAGS)" LDFLAGS="-fprofile-generate $(LDFLAGS)"

Modified: pypy/dist/pypy/translator/c/test/test_genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_genc.py	(original)
+++ pypy/dist/pypy/translator/c/test/test_genc.py	Sun Mar  4 15:43:06 2007
@@ -40,6 +40,8 @@
     # XXX fish
     t.driver.config.translation.countmallocs = True
     compiled_fn = t.compile_c()
+    if conftest.option.view:
+        t.view()
     # XXX fish fish fish some more
     module = t.driver.cbuilder.c_ext_module
     def checking_fn(*args, **kwds):



More information about the Pypy-commit mailing list