summaryrefslogtreecommitdiffstats
path: root/build/moz.configure/lto-pgo.configure
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /build/moz.configure/lto-pgo.configure
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.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.configure10
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":