Allow build profiles to omit language entries

pull/6271/head
Laurence de Bruxelles 2018-03-02 17:27:38 +00:00
parent a6e27b1b86
commit ce6bd9defc
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ def prepare_toolchain(src_paths, build_dir, target, toolchain_name,
profile = {'c': [], 'cxx': [], 'common': [], 'asm': [], 'ld': []}
for contents in build_profile or []:
for key in profile:
profile[key].extend(contents[toolchain_name][key])
profile[key].extend(contents[toolchain_name].get(key, []))
toolchain = cur_tc(target, notify, macros, silent, build_dir=build_dir,
extra_verbose=extra_verbose, build_profile=profile)