Allow build profiles to omit language entries

pull/6364/head
Laurence de Bruxelles 2018-03-02 17:27:38 +00:00 committed by Cruz Monrreal II
parent 2e54965500
commit 61111f0b27
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,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)