commit 5bba3e71d0c54b5b8a90f944edac3f1a539768ca
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Fri Sep 3 14:46:52 2021 +0100
aarch64 fix
chromium-aarch64-cxxflags-addition.patch | 14 ++++++++++++++
chromium-freeworld.spec | 1 +
2 files changed, 15 insertions(+)
---
diff --git a/chromium-aarch64-cxxflags-addition.patch
b/chromium-aarch64-cxxflags-addition.patch
new file mode 100644
index 0000000..0e2e5cd
--- /dev/null
+++ b/chromium-aarch64-cxxflags-addition.patch
@@ -0,0 +1,14 @@
+diff -up chromium-91.0.4472.77/build/config/compiler/BUILD.gn.aarch-cxxflags
chromium-91.0.4472.77/build/config/compiler/BUILD.gn
+--- chromium-91.0.4472.77/build/config/compiler/BUILD.gn.aarch-cxxflags 2021-06-02
12:58:21.998750145 -0400
++++ chromium-91.0.4472.77/build/config/compiler/BUILD.gn 2021-06-02 12:59:29.762092189
-0400
+@@ -1511,6 +1511,10 @@ config("default_warnings") {
+ cflags += [ "-Wno-psabi" ]
+ }
+
++ if (current_cpu == "arm64" && !is_clang) {
++ cflags_cc += [ "-flax-vector-conversions" ]
++ }
++
+ if (!is_clang) {
+ cflags_cc += [
+ # See comment for -Wno-c++11-narrowing.
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 037b0c5..b5842cd 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -166,6 +166,7 @@ Patch301: chromium-gcc11.patch
Patch302: chromium-py3-fixes.patch
Patch303: chromium-java-only-allowed-in-android-builds.patch
Patch304: chromium-update-highway-0.12.2.patch
+Patch305: chromium-aarch64-cxxflags-addition.patch
Patch1303: chromium-rawhide-gcc-std-max-fix.patch
# RPM Fusion patches [free/chromium-freeworld]: