[pypy-commit] pypy dtrace-support: special casing for freebsd, to be tested

fijal noreply at buildbot.pypy.org
Tue Mar 17 16:28:46 CET 2015


Author: fijal
Branch: dtrace-support
Changeset: r76434:1f895d6aad66
Date: 2015-03-17 17:25 +0200
http://bitbucket.org/pypy/pypy/changeset/1f895d6aad66/

Log:	special casing for freebsd, to be tested

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
@@ -488,6 +488,14 @@
                     mk.definition('DEBUGFLAGS', '-O1 -g -fPIC')
                 else:
                     mk.definition('DEBUGFLAGS', '-O1 -g')
+        if (self.config.translation.dtrace and
+            not self.translator.platform.name.startswith('darwin')):
+            # right now dtrace is incompatible with asmgcc on all platforms
+            # I think
+            assert self.config.translation.gcrootfinder != 'asmgcc'
+            mk.definition('OBJECTS1', '$(subst .c,.o,$(SOURCES))')
+            mk.definition('OBJECTS', '$(OBJECTS1) dtrace_marker')
+            mk.rule('dtrace_marker', '', 'dtrace -G -s pypy.d $(OBJECTS)')
         if self.translator.platform.name == 'msvc':
             mk.rule('debug_target', 'debugmode_$(DEFAULT_TARGET)', 'rem')
         else:


More information about the pypy-commit mailing list