From f5e97602a74946d8418c46ba08cb6836feadcc6b Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 29 Apr 2010 14:33:08 +0000 Subject: [PATCH] Add support for automatic toolchain search (for preset-based projects). NOTE: this has to be tested with suitable toolchains installed. In my case the only toolchain found is for i386 target. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3572 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BRoutePage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wizard/BRoutePage.py b/wizard/BRoutePage.py index d8e6d370..5b48a174 100644 --- a/wizard/BRoutePage.py +++ b/wizard/BRoutePage.py @@ -82,6 +82,10 @@ class BRoutePage(BWizardPage): tm = ToolchainManager() suitable_toolchains = tm.suitableToolchains(target) if len(suitable_toolchains) == 1: + toolchain = suitable_toolchains.pop() + toolchain_info = tm._validateToolchain(toolchain) + toolchain_info["path"] = toolchain + self.setProjectInfo("TOOLCHAIN", toolchain_info) return self.wizard().pageIndex(BOutputPage) else: return self.wizard().pageIndex(BToolchainPage) -- 2.25.1