summaryrefslogtreecommitdiffstats
path: root/games/0ad/0001-Fix-clang-16-build-of-SM-91.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games/0ad/0001-Fix-clang-16-build-of-SM-91.patch')
-rw-r--r--games/0ad/0001-Fix-clang-16-build-of-SM-91.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/games/0ad/0001-Fix-clang-16-build-of-SM-91.patch b/games/0ad/0001-Fix-clang-16-build-of-SM-91.patch
new file mode 100644
index 0000000000..dca1e15c04
--- /dev/null
+++ b/games/0ad/0001-Fix-clang-16-build-of-SM-91.patch
@@ -0,0 +1,54 @@
+From e5117570f6c32c08080c7c7b218659030ece6e6e Mon Sep 17 00:00:00 2001
+From: Ralph Sennhauser <ralph.sennhauser@gmail.com>
+Date: Mon, 15 May 2023 22:22:26 +0200
+Subject: [PATCH 1/1] Fix clang-16 build of SM-91
+
+---
+ .../source/spidermonkey/FixClang16Build.diff | 24 +++++++++++++++++++
+ libraries/source/spidermonkey/patch.sh | 2 ++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 libraries/source/spidermonkey/FixClang16Build.diff
+
+diff --git a/libraries/source/spidermonkey/FixClang16Build.diff b/libraries/source/spidermonkey/FixClang16Build.diff
+new file mode 100644
+index 0000000000..c684248a7f
+--- /dev/null
++++ b/libraries/source/spidermonkey/FixClang16Build.diff
+@@ -0,0 +1,24 @@
++From 8dd2ad66811d2d5c72599bd87a77345c254af23c Mon Sep 17 00:00:00 2001
++From: Ralph Sennhauser <ralph.sennhauser@gmail.com>
++Date: Mon, 15 May 2023 22:02:52 +0200
++Subject: [PATCH 1/1] Use default pass manager for clang
++
++---
++ build/moz.configure/flags.configure | 1 +
++ 1 file changed, 1 insertion(+)
++
++diff --git a/build/moz.configure/flags.configure b/build/moz.configure/flags.configure
++index cc8ca1e6aada..40f4c7d905ec 100644
++--- a/build/moz.configure/flags.configure
+++++ b/build/moz.configure/flags.configure
++@@ -36,6 +36,7 @@ option(
++ ubsan,
++ )
++ def new_pass_manager_flags(enabled, compiler, host, target, pgo, enable_fuzzing, ubsan):
+++ return None
++ if host.os == "OSX":
++ # Some native Mac builds hang with the new pass manager. Given the
++ # inability to test in CI, don't take the risk of further breakage.
++--
++2.39.3
++
+diff --git a/libraries/source/spidermonkey/patch.sh b/libraries/source/spidermonkey/patch.sh
+index 96b03a46f5..aa6a15a107 100644
+--- a/libraries/source/spidermonkey/patch.sh
++++ b/libraries/source/spidermonkey/patch.sh
+@@ -53,3 +53,5 @@ if [ "$PYTHON_MINOR_VERSION" -ge 11 ];
+ then
+ patch -p1 < ../FixUnicodePython311.diff
+ fi
++
++patch -p1 < ../FixClang16Build.diff
+--
+2.39.3
+