Closed Bug 968845 Opened 12 years ago Closed 10 years ago

Win32 PGO builds pass -LTCG:PGINSTRUMENT to cl, but -LTCG is a linker option

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ehoogeveen, Unassigned)

References

()

Details

While looking at a build log for a recent win32 PGO build I noticed that cl prints the following warning: cl : Command line warning D9002 : ignoring unknown option '-LTCG:PGINSTRUMENT' And indeed, this flag is passed to cl during a lot of build steps - but -LTCG is a linker option. Since I couldn't find -LTCG:PGOPTIMIZE anywhere, for a while I thought PGO might be entirely broken, but it seems we do pass -LTCG:PGINSTRUMENT to the linker while linking xul and use -LTCG:PGUPDATE further down, so I think this is probably just a cosmetic issue. Still, it's confusing at best and there's still a chance passing the flag to cl means we're not passing it to the linker in places we intend to, so it would be nice to fix. As an aside, cl also prints the following other warnings: cl : Command line warning D9002 : ignoring unknown option '-OP' cl : Command line warning D9002 : ignoring unknown option '-OT' cl : Command line warning D9002 : ignoring unknown option '-O:' cl : Command line warning D9002 : ignoring unknown option '-OR' cl : Command line warning D9002 : ignoring unknown option '-OE' cl : Command line warning D9002 : ignoring unknown option '-OF'
I don't see this anywhere in a current PGO build log: https://treeherder.mozilla.org/logviewer.html#?job_id=22264168&repo=mozilla-inbound Maybe we fixed it at some point?
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Yeah, I didn't see this locally anymore either when I tested it again recently. I did see several instances of "MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance", but I'm not sure if that's a PGO thing, or how much difference it would make to fix. Either way, not this bug.
That happens if you wind up linking without -LTCG but you link in an object file that was compiled with -GL. It's pretty harmless, but if we can track down where it comes from we could fix it.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.