github.com/distbuild/reclient@v0.0.0-20240401075343-3de72e395564/third_party/patches/goma/goma.patch (about) 1 --- ./client/build/config/compiler/BUILD.gn 2023-02-16 11:51:34.546861729 -0500 2 +++ ./client/build/config/compiler/BUILD.gn.new 2023-02-16 11:52:03.219149175 -0500 3 @@ -80,6 +80,10 @@ 4 "-Wl,-z,now", 5 "-Wl,-z,relro", 6 ] 7 + cflags += [ 8 + # Use DWARF version 4 (default 5) for Ubuntu 18.04 compatibility 9 + "-fdebug-default-version=4", 10 + ] 11 } 12 sysroot = "" 13 if (current_cpu == "x64") { 14 @@ -88,9 +92,6 @@ 15 "-march=x86-64", 16 ] 17 ldflags += [ "-m64" ] 18 - if (os == "linux") { 19 - sysroot = "//third_party/chromium_build/linux/debian_bullseye_amd64-sysroot" 20 - } 21 } else if (current_cpu == "x86") { 22 cflags += [ "-m32" ] 23 ldflags += [ "-m32" ] 24 @@ -109,8 +110,6 @@ 25 26 if (use_lld) { 27 ldflags += [ 28 - "-fuse-ld=lld", 29 - 30 # This is necessary to prevent crash of goma on chromiumos chroot env. 31 # (crbug.com/780045#c35) 32 "-Wl,-hash-style=both", 33 @@ -545,6 +544,7 @@ 34 35 # ioapi.c in minizip violates this. 36 "-Wno-deprecated-non-prototype", 37 + "-Wno-unknown-warning-option", 38 ] 39 } 40 }