added -falign-functions=32

This commit is contained in:
2021-11-04 12:59:52 +01:00
parent 7eb1be8371
commit 715063281a

View File

@@ -622,7 +622,8 @@ func setupMakepkg(march string) {
makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "") makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "")
makepkgStr = strings.ReplaceAll(makepkgStr, "!lto", "") makepkgStr = strings.ReplaceAll(makepkgStr, "!lto", "")
makepkgStr = strings.ReplaceAll(makepkgStr, "-O2", "-O3") // Add align-functions=32, see https://github.com/InBetweenNames/gentooLTO/issues/164 for more
makepkgStr = strings.ReplaceAll(makepkgStr, "-O2", "-O3 -falign-functions=32")
makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ") makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ")
makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ") makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ")
// Add LTO. Since it's (!lto) not in devtools yet, add it instead. // Add LTO. Since it's (!lto) not in devtools yet, add it instead.