diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /build/moz.configure/lto-pgo.configure | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build/moz.configure/lto-pgo.configure')
-rw-r--r-- | build/moz.configure/lto-pgo.configure | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/build/moz.configure/lto-pgo.configure b/build/moz.configure/lto-pgo.configure index ab6a527fe4..5048b367e2 100644 --- a/build/moz.configure/lto-pgo.configure +++ b/build/moz.configure/lto-pgo.configure @@ -148,7 +148,10 @@ def pgo_flags( use_ldflags = [] if orderfile: if compiler.type == "clang-cl": - use_ldflags += ["-ORDER:@" + orderfile] + use_ldflags += [ + "-ORDER:@" + orderfile, + "/ignore:4037", # Disable warn missing order symbol + ] elif linker.KIND == "ld64" or (linker.KIND == "lld" and target.os == "OSX"): use_ldflags += ["-Wl,-order_file", orderfile] elif linker.KIND == "lld": @@ -316,7 +319,6 @@ def lto( if ( target.kernel == "Darwin" - and target.os == "OSX" and "cross" in values and select_linker.KIND == "ld64" and not ld64_known_good @@ -392,7 +394,7 @@ def lto( # (For hot functions, PGO will put a multiplier on this limit.) if target.os == "WINNT": ldflags.append("-mllvm:-import-instr-limit=10") - elif target.os == "OSX": + elif target.kernel == "Darwin": ldflags.append("-Wl,-mllvm,-import-instr-limit=10") elif c_compiler.type == "clang": ldflags.append("-Wl,-plugin-opt=-import-instr-limit=10") @@ -406,7 +408,7 @@ def lto( ldflags.append("-opt:ltonewpassmanager") if c_compiler.version >= "12.0.0": ldflags.append("-mllvm:-import-hot-multiplier=30") - elif target.os == "OSX": + elif target.kernel == "Darwin": ldflags.append("-Wl,-mllvm,-import-hot-multiplier=30") else: if c_compiler.version < "13.0.0": |