diff --git a/portage/make.conf b/portage/make.conf index 0409ba6..f8abb03 100644 --- a/portage/make.conf +++ b/portage/make.conf @@ -26,6 +26,7 @@ LD_SEC="-Wl,-pie -Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro" ## Compiler flags. CFLAGS="-march=znver3 -O2 -pipe -flto=thin -U__gnu_linux__ ${C_SEC}" CXXFLAGS="-march=znver3 -O2 -pipe -flto=thin ${C_SEC}" +RUSTFLAGS="-C target-cpu=znver3 -C opt-level=2 -C lto -C embed-bitcode=y -C debuginfo=0" ## Linker flags. LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--thinlto-jobs=4 ${LD_SEC}"