~mozillateam/firefox/firefox-beta.hirsute

« back to all changes in this revision

Viewing changes to debian/patches/s390x-workaround-sqlite3-clang-optimization-hang.patch

  • Committer: Olivier Tilloy
  • Date: 2021-01-14 17:33:51 UTC
  • Revision ID: olivier.tilloy@canonical.com-20210114173351-mpvtbs04ojpng23j
* Remove patches that are no longer needed
  - debian/patches/fix-make-package-tests-without-webrtc.patch
  - debian/patches/ppc-no-static-sizes.patch
  - debian/patches/s390x-workaround-sqlite3-clang-optimization-hang.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: work around clang hanging forever when trying to optimize the sqlite3 build
2
 
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
3
 
Bug-Ubuntu: https://launchpad.net/bugs/1878292
4
 
 
5
 
--- a/third_party/sqlite3/src/moz.build
6
 
+++ b/third_party/sqlite3/src/moz.build
7
 
@@ -98,3 +98,8 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc')
8
 
         '-Wno-sign-compare',
9
 
         '-Wno-type-limits',
10
 
     ]
11
 
+
12
 
+# Work around clang hanging forever when trying to optimize the sqlite3 build
13
 
+# with the default "-O2" parameter. See https://launchpad.net/bugs/1878292.
14
 
+if CONFIG['CC_TYPE'] == 'clang' and CONFIG['CPU_ARCH'] == 's390x':
15
 
+    CFLAGS += ['-O0']