[pypy-commit] pypy default: Move the set_platform() call earlier. The issue is that if the target
arigo
noreply at buildbot.pypy.org
Thu Jun 9 10:45:51 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r44849:3e05bed924c2
Date: 2011-06-09 10:46 +0200
http://bitbucket.org/pypy/pypy/changeset/3e05bed924c2/
Log: Move the set_platform() call earlier. The issue is that if the
target builds rffi externals, it needs to build an
ExternalCompilationInfo, but the call to set_platform() will
invalidate it.
diff --git a/pypy/translator/goal/translate.py b/pypy/translator/goal/translate.py
--- a/pypy/translator/goal/translate.py
+++ b/pypy/translator/goal/translate.py
@@ -149,6 +149,9 @@
log.ERROR("Could not find target %r" % (arg, ))
sys.exit(1)
+ # apply the platform settings
+ set_platform(config)
+
targetspec = translateconfig.targetspec
targetspec_dic = load_target(targetspec)
@@ -164,9 +167,6 @@
existing_config=config,
translating=True)
- # apply the platform settings
- set_platform(config)
-
# apply the optimization level settings
set_opt_level(config, translateconfig.opt)
More information about the pypy-commit
mailing list