From: Bradley Sepos Date: Sat, 13 Apr 2019 15:33:20 +0000 (-0400) Subject: make: Rerun cross tools probe before creating CLI help. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cfbe299bb6e9ffac8f73b3575fe75bbee0d3c5a;p=handbrake make: Rerun cross tools probe before creating CLI help. --- 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()