diff options
author | Armin Rigo <arigo@tunes.org> | 2020-08-23 11:30:50 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2020-08-23 11:30:50 +0200 |
commit | f639dccf1cc98e17c9786cc3f8e587132d99087f (patch) | |
tree | 1fb1adbd597579a25b6b6e667d44c10cdfeefc81 /rpython/translator | |
parent | upgrade 26691d5fd920 (diff) | |
download | pypy-f639dccf1cc98e17c9786cc3f8e587132d99087f.tar.gz pypy-f639dccf1cc98e17c9786cc3f8e587132d99087f.tar.bz2 pypy-f639dccf1cc98e17c9786cc3f8e587132d99087f.zip |
Use "JITLOG" in programs translated with rpython/bin/rpython,
and "JITLOG_FORTESTS" in all other cases (i.e. for tests)
Diffstat (limited to 'rpython/translator')
-rw-r--r-- | rpython/translator/c/genc.py | 2 | ||||
-rwxr-xr-x | rpython/translator/goal/translate.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/rpython/translator/c/genc.py b/rpython/translator/c/genc.py index a9f80ed6ac..177d28c7e4 100644 --- a/rpython/translator/c/genc.py +++ b/rpython/translator/c/genc.py @@ -190,6 +190,8 @@ class CBuilder(object): defines['RPY_SANDBOXED'] = 1 if self.config.translation.reverse_debugger: defines['RPY_REVERSE_DEBUGGER'] = 1 + if self.config.translation.rpython_translate: + defines['RPY_TRANSLATE'] = 1 if CBuilder.have___thread is None: CBuilder.have___thread = self.translator.platform.check___thread() if not self.standalone: diff --git a/rpython/translator/goal/translate.py b/rpython/translator/goal/translate.py index 1e50150972..73ca7db468 100755 --- a/rpython/translator/goal/translate.py +++ b/rpython/translator/goal/translate.py @@ -166,6 +166,8 @@ def parse_options_and_load_target(): existing_config=config, translating=True) + config.translation.rpython_translate = True + # show the target-specific help if --help was given show_help(translateconfig, opt_parser, targetspec_dic, config) |