Switch from long-form optimise argument to short-form

Long-form optimise argument breaks optimisation in build systems,
causing build failures and possibly undefined behaviour.
This commit is contained in:
inference 2023-10-15 09:15:41 +01:00
parent 56fc1d6711
commit 0a4d330123
Signed by: inference
SSH Key Fingerprint: SHA256:FtEVfx1CmTKMy40VwZvF4k+3TC+QhCWy+EmPRg50Nnc
5 changed files with 15 additions and 15 deletions

View File

@ -4,13 +4,13 @@
# Copyright 2023 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
# Version: 5.0.0.7
# Version: 6.0.0-alpha.1+8
# Flags
## Compiler flags
CFLAGS="-march=znver3 -mtune=znver3 --optimize=2 -pipe"
CXXFLAGS="-march=znver3 -mtune=znver3 --optimize=2 -pipe"
CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe"
CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe"
RUSTFLAGS="-C debuginfo=0 -C opt-level=2 -C target-cpu=znver3"
## Linker flags
LDFLAGS="-Wl,-O2 -Wl,--strip-all"

View File

@ -4,7 +4,7 @@
# Copyright 2022 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
# Version: 8.0.0.14
# Version: 9.0.0-alpha.1+15
# Toolchain
@ -17,8 +17,8 @@ STRIP="strip"
# Flags
## Compiler flags
CFLAGS="-march=znver3 -mtune=znver3 --optimize=2 -pipe"
CXXFLAGS="-march=znver3 -mtune=znver3 --optimize=2 -pipe"
CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe"
CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe"
RUSTFLAGS="-C debuginfo=0 -C opt-level=2 -C target-cpu=znver3"
## Linker flags
LDFLAGS="-Wl,-O2 -Wl,--strip-all"

View File

@ -4,7 +4,7 @@
# Copyright 2022 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
# Version: 9.0.0.16
# Version: 10.0.0-alpha.1+17
# Flags
@ -12,8 +12,8 @@
C_SEC="-fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -fwrapv"
LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
## Compiler flags
CFLAGS="-march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}"
CXXFLAGS="-march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}"
CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
RUSTFLAGS="-C debuginfo=0 -C opt-level=2 -C target-cpu=znver3"
## Linker flags
LDFLAGS="-Wl,-O2 -Wl,--strip-all ${LD_SEC}"

View File

@ -4,7 +4,7 @@
# Copyright 2023 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
# Version: 2.0.0.4
# Version: 3.0.0-alpha.1+5
# Flags
@ -12,8 +12,8 @@
C_SEC="-fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -fwrapv"
LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
## Compiler flags
CFLAGS="-flto=4 -march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}"
CXXFLAGS="-flto=4 -march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}"
CFLAGS="-flto=4 -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
CXXFLAGS="-flto=4 -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
RUSTFLAGS="-C debuginfo=0 -C lto -C opt-level=2 -C target-cpu=znver3"
## Linker flags
LDFLAGS="-Wl,-O2 -Wl,--strip-all ${LD_SEC}"

View File

@ -4,7 +4,7 @@
# Copyright 2023 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
# Version: 4.0.0.8
# Version: 5.0.0-alpha.1+9
# Flags
@ -12,8 +12,8 @@
C_SEC="-fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -fwrapv"
LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
## Compiler flags
CFLAGS="-march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}"
CXXFLAGS="-march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}"
CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
RUSTFLAGS="-C debuginfo=0 -C opt-level=2 -C target-cpu=znver3"
## Linker flags
LDFLAGS="-Wl,-O2 -Wl,--strip-all ${LD_SEC}"