Add toolchains steps even if we are building with `--build-nodeps`.

Toolchains are not really a deps, they have to be build everytime.
This commit is contained in:
Matthieu Gautier 2018-06-14 22:58:43 +02:00
parent 428fe7efa0
commit b3d9ff5a6b
1 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,16 @@ class Builder:
steps = list(remove_duplicates(steps)) steps = list(remove_duplicates(steps))
if option('build_nodeps'): if option('build_nodeps'):
# add all platform steps
for pltName in PlatformInfo.all_running_platforms:
plt = PlatformInfo.all_platforms[pltName]
for tlcName in plt.toolchain_names:
tlc = Dependency.all_deps[tlcName]
src_plt_step = ('source', tlcName)
add_target_step(src_plt_step, self._targets[src_plt_step])
blt_plt_step = ('neutral' if tlc.neutral else pltName, tlcName)
add_target_step(blt_plt_step, self._targets[blt_plt_step])
src_targetDef = ('source', targetDef[1]) src_targetDef = ('source', targetDef[1])
add_target_step(src_targetDef, self._targets[src_targetDef]) add_target_step(src_targetDef, self._targets[src_targetDef])
add_target_step(targetDef, self._targets[targetDef]) add_target_step(targetDef, self._targets[targetDef])