diff options
author | Bradley Sepos <[email protected]> | 2019-04-13 11:33:20 -0400 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2019-04-13 14:05:22 -0400 |
commit | 5cfbe299bb6e9ffac8f73b3575fe75bbee0d3c5a (patch) | |
tree | 458bf47c2cc7c1abfbc2c2b716df703b93992d43 /make | |
parent | d76f5570c1671e9a9acb6b291017cf5a57d0cff9 (diff) |
make: Rerun cross tools probe before creating CLI help.
Diffstat (limited to 'make')
-rw-r--r-- | make/configure.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/make/configure.py b/make/configure.py index 326c387b0..729846e4d 100644 --- a/make/configure.py +++ b/make/configure.py @@ -1583,6 +1583,12 @@ try: cross = None if cross == '' else cross continue + ## re-run tools with cross-compilation needs + if cross: + for tool in ( Tools.ar, Tools.gcc, Tools.ranlib, Tools.strip ): + tool.__init__( tool.var, '%s-%s' % (cross,tool.name), **tool.kwargs ) + tool.run() + # create CLI and parse cli = createCLI( cross ) options, args = cli.parse_known_args() @@ -1601,12 +1607,6 @@ try: else: targets.append( arg ) - ## re-run tools with cross-compilation needs - if options.cross: - for tool in ( Tools.ar, Tools.gcc, Tools.ranlib, Tools.strip ): - tool.__init__( tool.var, '%s-%s' % (options.cross,tool.name), **tool.kwargs ) - tool.run() - ## run delayed actions for action in Action.actions: action.run() |