From 75583870d04536ab3d384ac9601c6269f0e5695d Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Sat, 9 Nov 2019 00:11:06 -0800 Subject: [PATCH] build-proton-tc.sh: Drop -march=native optimization Recent benchmarks have shown that -march=native either doesn't change anything or actually introduces a regression in kernel build times using the resulting toolchain. Drop it for improved compatibility and reduced maintenance costs as we only need a single build now. GitHub issue: https://github.com/ClangBuiltLinux/tc-build/pull/55#issuecomment-550400636 Signed-off-by: Danny Lin --- build-proton-tc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-proton-tc.sh b/build-proton-tc.sh index 4e05caab..f622f43b 100755 --- a/build-proton-tc.sh +++ b/build-proton-tc.sh @@ -16,8 +16,8 @@ if [[ "$1" == "--ci" ]] || [[ "$DRONE" == "true" ]]; then binutils_args=(--targets arm aarch64 x86_64 --shallow-clone) else msg "Configuring full-fledged LLVM build..." - llvm_args=(--targets "ARM;AArch64;X86" --march "native" --lto full) - binutils_args=(--targets arm aarch64 x86_64 --march "native") + llvm_args=(--targets "ARM;AArch64;X86" --lto full) + binutils_args=(--targets arm aarch64 x86_64) fi # Build LLVM