remove cpu tune flag

Signed-off-by: RubenKelevra <rubenkelevra@git.harting.dev>
This commit is contained in:
RubenKelevra
2022-06-14 10:20:51 +02:00
parent be46f92cbe
commit 20ea64acdc

View File

@@ -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)