MSVC linker uses /opt:icf as default in release builds (no /DEBUG) and /opt:noref in debug builds. We should do the same
Details
Details
Diff Detail
Diff Detail
Event Timeline
lld/COFF/Driver.cpp | ||
---|---|---|
850–854 | Instead of adding a new if, move line 760-766 here and set DoGC and DoICF to false in that if. |
Comment Actions
LGTM
lld/COFF/Driver.cpp | ||
---|---|---|
844 | It is a bit odd that you mentioned only /opt:noref. I'd probably write a comment: // /debug implies /opt:noref and /opt:noicf. This is compatible with MSVC. |
It is a bit odd that you mentioned only /opt:noref. I'd probably write a comment: