2022-06-18 23:57:53 +02:00
|
|
|
# template values get replaced on makepkg.conf generation
|
|
|
|
# $level$ -> march x86-64 level, e.g. v3
|
|
|
|
# $march$ -> full march, e.g. x86-64-v3
|
|
|
|
# $buildproc$ -> number of threads to build with
|
|
|
|
|
|
|
|
common:
|
|
|
|
cflags:
|
|
|
|
- "-mtune=generic": ~
|
|
|
|
- "-O2": "-O3"
|
|
|
|
- "-mpclmul" # https://git.harting.dev/ALHP/ALHP.GO/issues/92
|
|
|
|
- "-march=x86-64": "-march=$march$"
|
|
|
|
|
|
|
|
options:
|
|
|
|
- "lto": "!lto" # disable lto; see 'lto' section below
|
|
|
|
|
|
|
|
buildenv:
|
|
|
|
- "color": "!color" # color messes up the log output
|
|
|
|
|
|
|
|
goamd64: "$level$" # https://git.harting.dev/ALHP/ALHP.GO/issues/116
|
|
|
|
packager: "ALHP $march$ <alhp@harting.dev>"
|
|
|
|
makeflags: "-j$buildproc$"
|
|
|
|
# https://git.harting.dev/ALHP/ALHP.GO/issues/110
|
2023-01-20 13:18:34 +01:00
|
|
|
rustflags: "-Copt-level=3 -Ctarget-cpu=$march$"
|
2022-06-18 23:57:53 +02:00
|
|
|
ltoflags:
|
|
|
|
- "-falign-functions=32" # https://github.com/InBetweenNames/gentooLTO/issues/164
|
|
|
|
|
|
|
|
lto:
|
|
|
|
rustflags:
|
|
|
|
- "-Clto=fat"
|
2022-06-19 00:47:34 +02:00
|
|
|
- "-Ccodegen-units=1"
|
2022-06-18 23:57:53 +02:00
|
|
|
- "-Clinker-plugin-lto"
|
|
|
|
|
|
|
|
options:
|
2022-06-19 00:37:01 +02:00
|
|
|
- "!lto": "lto"
|