[pypy-svn] r35691 - pypy/dist/pypy/translator/goal
afayolle at codespeak.net
afayolle at codespeak.net
Wed Dec 13 18:55:03 CET 2006
Author: afayolle
Date: Wed Dec 13 18:55:02 2006
New Revision: 35691
Modified:
pypy/dist/pypy/translator/goal/translate.py
Log:
call target.get_additional_config options before target.handle_config, so that the options can be created before they are set
Modified: pypy/dist/pypy/translator/goal/translate.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate.py (original)
+++ pypy/dist/pypy/translator/goal/translate.py Wed Dec 13 18:55:02 2006
@@ -145,10 +145,6 @@
if args and not targetspec_dic.get('take_options', False):
log.WARNING("target specific arguments supplied but will be ignored: %s" % ' '.join(args))
- # let the target modify or prepare itself
- # based on the config
- if 'handle_config' in targetspec_dic:
- targetspec_dic['handle_config'](config)
# give the target the possibility to get its own configuration options
# into the config
if 'get_additional_config_options' in targetspec_dic:
@@ -158,6 +154,11 @@
existing_config=config,
translating=True)
+ # let the target modify or prepare itself
+ # based on the config
+ if 'handle_config' in targetspec_dic:
+ targetspec_dic['handle_config'](config)
+
if 'handle_translate_config' in targetspec_dic:
targetspec_dic['handle_translate_config'](translateconfig)
More information about the Pypy-commit
mailing list