From: Tom Stellard
[redhat] spec: Add %bcond_with toolchain_clang option
This option can be enabled by passing --with toolchain_clang to rpmbuild
or mock. Enabling this option will cause the kernel to be built with
clang instead of gcc.
Signed-off-by: Tom Stellard
diff a/redhat/kernel.spec.t
From: Tom Stellard
[redhat] spec: Add %bcond_with clang option
diff a/redhat/kernel.spec.template b/redhat/kernel.spec.template
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -6,6 +6,12 @@
# Disable LTO in userspace packages.
%global _lto_cflags %{nil}
+# Option to en