From 2dd8d4cbdf496b6d5d2e74cca39d9f232a5a88bd Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 30 Aug 2021 14:45:07 +0200 Subject: [PATCH] ELN: Enable -march=x86-64-v2 for Clang as well --- macros | 2 +- redhat-rpm-config.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/macros b/macros index fccb744..2bd19c7 100644 --- a/macros +++ b/macros @@ -139,7 +139,7 @@ print(result) # Architecture-specific support. Internal. Do not use directly. -%__cflags_arch_x86_64 %[0%{?rhel} >= 9 && "%{toolchain}" == "gcc" ? "-march=x86-64-v2" : ""] +%__cflags_arch_x86_64 %[0%{?rhel} >= 9 ? "-march=x86-64-v2" : ""] # Also used for s390. %__cflags_arch_s390x %[0%{?rhel} >= 8 ? "-march=z13 -mtune=z14" : "-march=zEC12 -mtune=z13"] diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 8786a2f..8a8dbe5 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 197 +Version: 198 Release: 1%{?dist} # No version specified. License: GPL+ @@ -215,6 +215,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Mon Aug 30 2021 Florian Weimer - 198-1 +- ELN: Enable -march=x86-64-v2 for Clang as well + * Tue Aug 17 2021 Tom Stellard - 197-1 - Add build_ preifix to cc, cxx, and cpp macros