summaryrefslogtreecommitdiffstats
path: root/build/moz.configure/lto-pgo.configure
diff options
context:
space:
mode:
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":