diff --git a/utils.go b/utils.go index c69e3a2..a2e7f3e 100644 --- a/utils.go +++ b/utils.go @@ -734,7 +734,7 @@ func setupMakepkg(march string) error { // enable rust flags and patch them makepkgStr = strings.ReplaceAll(makepkgStr, "#RUSTFLAGS=", "RUSTFLAGS=") makepkgStr = strings.ReplaceAll(makepkgStr, "-C opt-level=2", "-C opt-level=3") - makepkgStr = strings.ReplaceAll(makepkgStr, "-C opt-level=3", "-C opt-level=3 -C target-cpu="+march+" -C lto=fat -C codegen-units=1 -C strip=symbols -Z tune-cpu=generic -C linker-plugin-lto") + makepkgStr = strings.ReplaceAll(makepkgStr, "-C opt-level=3", "-C opt-level=3 -C target-cpu="+march+" -C lto=fat -C codegen-units=1 -C strip=symbols -C linker-plugin-lto") // write makepkg err = os.WriteFile(lMakepkg, []byte(makepkgStr), 0644)