Skip to content

Commit

Permalink
build-proton-tc.sh: Drop -march=native optimization
Browse files Browse the repository at this point in the history
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: ClangBuiltLinux#55 (comment)

Signed-off-by: Danny Lin <[email protected]>
  • Loading branch information
kdrag0n committed Nov 9, 2019
1 parent fc605e8 commit 7558387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-proton-tc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7558387

Please sign in to comment.