Skip to content

Commit 61111f0

Browse files
Laurence de Bruxellescmonr
authored andcommitted
Allow build profiles to omit language entries
1 parent 2e54965 commit 61111f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def prepare_toolchain(src_paths, build_dir, target, toolchain_name,
325325
profile = {'c': [], 'cxx': [], 'common': [], 'asm': [], 'ld': []}
326326
for contents in build_profile or []:
327327
for key in profile:
328-
profile[key].extend(contents[toolchain_name][key])
328+
profile[key].extend(contents[toolchain_name].get(key, []))
329329

330330
toolchain = cur_tc(target, notify, macros, silent, build_dir=build_dir,
331331
extra_verbose=extra_verbose, build_profile=profile)

0 commit comments

Comments
 (0)