Disable PA_MUSTTAIL to fix build faiure on ppc64le

epel8 imports/epel9/chromium-131.0.6778.85-1.el9
Than Ngo 1 month ago
parent e975118e0a
commit 5236752714

@ -6,7 +6,19 @@ diff -up chromium-131.0.6778.69/base/compiler_specific.h.me chromium-131.0.6778.
// }
// ```
-#if __has_cpp_attribute(clang::musttail)
+#if defined(__clang__) && __has_cpp_attribute(clang::musttail) && !defined(__powerpc64__)
+#if __has_cpp_attribute(clang::musttail) && !defined(__powerpc64__)
#define MUSTTAIL [[clang::musttail]]
#else
#define MUSTTAIL
diff -up chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h.me chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h
--- chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h.me 2024-11-20 18:50:28.690761262 +0100
+++ chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h 2024-11-20 18:54:49.374711202 +0100
@@ -138,7 +138,7 @@
// PA_MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called.
// }
// ```
-#if PA_HAS_CPP_ATTRIBUTE(clang::musttail)
+#if PA_HAS_CPP_ATTRIBUTE(clang::musttail) && !defined(__powerpc64__)
#define PA_MUSTTAIL [[clang::musttail]]
#else
#define PA_MUSTTAIL

@ -146,6 +146,9 @@
# enable|disable use_custom_libcxx
%global use_custom_libcxx 0
%if 0%{?rhel} || 0%{?fedora} == 39
%global use_custom_libcxx 1
%endif
# enable|disable control flow integrity support
%global cfi 0

Loading…
Cancel
Save