Skip to content

Commit ce6bd9d

Browse files
author
Laurence de Bruxelles
committed
Allow build profiles to omit language entries
1 parent a6e27b1 commit ce6bd9d

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
@@ -330,7 +330,7 @@ def prepare_toolchain(src_paths, build_dir, target, toolchain_name,
330330
profile = {'c': [], 'cxx': [], 'common': [], 'asm': [], 'ld': []}
331331
for contents in build_profile or []:
332332
for key in profile:
333-
profile[key].extend(contents[toolchain_name][key])
333+
profile[key].extend(contents[toolchain_name].get(key, []))
334334

335335
toolchain = cur_tc(target, notify, macros, silent, build_dir=build_dir,
336336
extra_verbose=extra_verbose, build_profile=profile)

0 commit comments

Comments
 (0)