Bug 1879837 - silent out orderfile warning on Windows r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D202300
This commit is contained in:
serge-sans-paille 2024-02-22 08:19:44 +00:00
parent 40c4c4cbc1
commit 93c6e276e8

View file

@ -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":