Remove Rust tune-cpu flag since it is available only on nightly compiler.

This commit is contained in:
inference 2023-01-05 20:56:52 +00:00
parent b67ccd5b4c
commit b3fe2b5b73

View File

@ -3,7 +3,7 @@
# Copyright 2022-2023 Inference
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Version: 1.0.0.2
# Version: 2.0.0.3
# Flags
@ -13,6 +13,6 @@ LD_SEC="-Wl,-pie -Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
## Compiler flags
CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe -U__gnu_linux__ ${C_SEC}"
CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
RUSTFLAGS="-C target-cpu=znver3 -Z tune-cpu=znver3 -C opt-level=2 -C debuginfo=0"
RUSTFLAGS="-C target-cpu=znver3 -C opt-level=2 -C debuginfo=0"
## Linker flags
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind ${LD_SEC}"