~chromium-team/chromium-browser/bionic-beta

« back to all changes in this revision

Viewing changes to debian/patches/linker-oom-armhf.patch

  • Committer: Olivier Tilloy
  • Date: 2022-06-16 17:35:06 UTC
  • Revision ID: olivier.tilloy@canonical.com-20220616173506-n3y1is939gs5skde
* debian/patches/linker-oom-armhf.patch: added

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: When building on armhf, pass --no-keep-memory to the linker in an attempt to reduce the memory pressure on the Launchpad builders, which consistently result in an OOM situation where the linker is killed and the build fails.
 
2
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
 
3
Bug-Ubuntu: https://launchpad.net/bugs/1978989
 
4
 
 
5
--- a/build/config/compiler/BUILD.gn
 
6
+++ b/build/config/compiler/BUILD.gn
 
7
@@ -489,6 +489,10 @@ config("compiler") {
 
8
     # error.  "-lpthread" is added in //build/config:default_libs.
 
9
   }
 
10
 
 
11
+  if (is_linux && target_cpu == "arm") {
 
12
+    ldflags += [ "-Wl,--no-keep-memory" ]
 
13
+  }
 
14
+
 
15
   # Clang-specific compiler flags setup.
 
16
   # ------------------------------------
 
17
   if (is_clang) {