Created
August 4, 2020 16:00
-
-
Save luca020400/b8e37a9e0e1502c1272db887a9082763 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/Kconfig b/arch/Kconfig | |
index 694bfdc2073f..54f6a55180ca 100644 | |
--- a/arch/Kconfig | |
+++ b/arch/Kconfig | |
@@ -595,7 +595,7 @@ config LTO_NONE | |
config LTO_CLANG | |
bool "Clang's Link Time Optimization (EXPERIMENTAL)" | |
# https://github.com/ClangBuiltLinux/linux/issues/510 | |
- depends on CC_IS_CLANG && CLANG_VERSION >= 110000 && LD_IS_LLD | |
+ depends on CC_IS_CLANG && CLANG_VERSION >= 100000 && LD_IS_LLD | |
depends on $(success,$(NM) --help | head -n 1 | grep -qi llvm) | |
depends on $(success,$(AR) --help | head -n 1 | grep -qi llvm) | |
depends on ARCH_SUPPORTS_LTO_CLANG | |
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig | |
index c9fb665b62b5..1883f42e341c 100644 | |
--- a/arch/arm64/Kconfig | |
+++ b/arch/arm64/Kconfig | |
@@ -73,7 +73,7 @@ config ARM64 | |
select ARCH_SUPPORTS_MEMORY_FAILURE | |
select ARCH_SUPPORTS_SHADOW_CALL_STACK if CC_HAVE_SHADOW_CALL_STACK | |
select ARCH_SUPPORTS_LTO_CLANG | |
- select ARCH_SUPPORTS_THINLTO | |
+ select ARCH_SUPPORTS_THINLTO if CLANG_VERSION >= 110000 | |
select ARCH_SUPPORTS_ATOMIC_RMW | |
select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 && (GCC_VERSION >= 50000 || CC_IS_CLANG) | |
select ARCH_SUPPORTS_NUMA_BALANCING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment