summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-12 18:12:14 +0200
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2023-08-24 22:08:59 +0000
commit1312ef49b3ada2754966b8e7536aaaae73dc06ab (patch)
treebd873a91f0ff2deb80620a7d9619d5d13ee47772 /src
parent1f9eadabbb81d93b84766f823a66489d89d18fe5 (diff)
Kconfig: Add option to make clang the default compiler
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: Ie910f654abdb8d79c686363d2bd8af4ceeea4087 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76436 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index ea6f341f78..1549719dd0 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -47,8 +47,15 @@ config CBFS_PREFIX
Select the prefix to all files put into the image. It's "fallback"
by default, "normal" is a common alternative.
+config DEFAULT_COMPILER_LLVM_CLANG
+ bool
+ help
+ Allows to override the default compiler. This can for instance be
+ set in site-local/Kconfig.
+
choice
prompt "Compiler to use"
+ default COMPILER_LLVM_CLANG if DEFAULT_COMPILER_LLVM_CLANG
default COMPILER_GCC
help
This option allows you to select the compiler used for building