diff options
author | JustKidding <jk@vin.ovh> | 2024-03-10 21:31:54 -0500 |
---|---|---|
committer | JustKidding <jk@vin.ovh> | 2024-03-10 21:31:54 -0500 |
commit | 9a78fc29d33fb146a90c2e77988171f5fb58da45 (patch) | |
tree | 8619d4912b918ffac2d861e70bbdabd695016a24 /drop-flag-unsupported-by-clang17.patch | |
parent | fad04a0cadef9de555544b2f373aa290fce8b894 (diff) | |
download | ungoogled-chromium-9a78fc29d33fb146a90c2e77988171f5fb58da45.tar.gz ungoogled-chromium-9a78fc29d33fb146a90c2e77988171f5fb58da45.tar.bz2 ungoogled-chromium-9a78fc29d33fb146a90c2e77988171f5fb58da45.zip |
upgpkg: ungoogled-chromium 122.0.6261.111-1
upstream release
Diffstat (limited to 'drop-flag-unsupported-by-clang17.patch')
-rw-r--r-- | drop-flag-unsupported-by-clang17.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drop-flag-unsupported-by-clang17.patch b/drop-flag-unsupported-by-clang17.patch new file mode 100644 index 0000000..a1412c9 --- /dev/null +++ b/drop-flag-unsupported-by-clang17.patch @@ -0,0 +1,29 @@ +diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn +index 89b4755ac8b3..94b457385663 100644 +--- a/build/config/compiler/BUILD.gn ++++ b/build/config/compiler/BUILD.gn +@@ -618,24 +618,6 @@ config("compiler") { + } + } + +- # TODO(crbug.com/1488374): This causes binary size growth and potentially +- # other problems. +- # TODO(crbug.com/1491036): This isn't supported by Cronet's mainline llvm version. +- if (default_toolchain != "//build/toolchain/cros:target" && +- !llvm_android_mainline) { +- cflags += [ +- "-mllvm", +- "-split-threshold-for-reg-with-hint=0", +- ] +- if (use_thin_lto && is_a_target_toolchain) { +- if (is_win) { +- ldflags += [ "-mllvm:-split-threshold-for-reg-with-hint=0" ] +- } else { +- ldflags += [ "-Wl,-mllvm,-split-threshold-for-reg-with-hint=0" ] +- } +- } +- } +- + # TODO(crbug.com/1235145): Investigate why/if this should be needed. + if (is_win) { + cflags += [ "/clang:-ffp-contract=off" ] |