From 61111f0b27267eab304651c0efb31be22380dfd5 Mon Sep 17 00:00:00 2001 From: Laurence de Bruxelles Date: Fri, 2 Mar 2018 17:27:38 +0000 Subject: [PATCH] Allow build profiles to omit language entries --- tools/build_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_api.py b/tools/build_api.py index 657038656e..1b4d53b338 100644 --- a/tools/build_api.py +++ b/tools/build_api.py @@ -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)