From: duplo Date: Thu, 29 Apr 2010 14:33:08 +0000 (+0000) Subject: Add support for automatic toolchain search (for preset-based projects). X-Git-Tag: 2.5.0~336 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f5e97602a74946d8418c46ba08cb6836feadcc6b;p=bertos.git 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 --- 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)