Force compiler code tuning to AMD Zen 3 architecture.

This commit is contained in:
inference 2023-01-03 14:05:30 +00:00
parent 8d97c08187
commit 235cca5c7c

View File

@ -3,7 +3,7 @@
# Copyright 2022-2023 Inference
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Version: 0.0.2.2
# Version: 1.0.0.3
# Toolchain
@ -23,7 +23,7 @@ STRIP="strip"
# Flags
## Compiler flags
CFLAGS="-march=znver3 -O2 -pipe -U__gnu_linux__"
CXXFLAGS="-march=znver3 -O2 -pipe"
CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe -U__gnu_linux__"
CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe"
## Linker flags
LDFLAGS="-Wl,-O2"