Repository navigation
Disable incremental linking in coreclr Checked Windows builds - #192
Conversation
We force `/OPT:REF` and this is incompatible with incremental linking (and yields a warning to that effect). To fix, explicitly disable incremental linking. (I couldn't find anyplace where it was explicitly enabled, so I believe it is enabled by default with the given linker options.) Another option would be to not force `/OPT:REF` for Checked builds.
|
@AaronRobinsonMSFT @dotnet/runtime-infrastructure PTAL |
|
@BruceForstall I don't fully understand why we want this. Having |
AaronRobinsonMSFT
left a comment
There was a problem hiding this comment.
If this is really what is desired, this code looks fine. I would strongly recommend removing /OPT:REF unless there is a compelling scenario where the run time of CoreCLR is more important than a faster inner loop.
|
I did what is minimal to fix the warning without changing behavior. I use Checked builds when running tests, but generally not when debugging (I use Debug for that). Does |
|
Same here. I hear that @jkotas does use CHK a lot so maybe he has a preference - incremental build is always a high priority for me outside of a REL build. |
The non-incremental linking step is fast enough for me. |
We force
/OPT:REFand this is incompatible with incremental linking(and yields a warning to that effect). To fix, explicitly disable
incremental linking.
(I couldn't find anyplace where it was explicitly enabled, so I believe
it is enabled by default with the given linker options.)
Another option would be to not force
/OPT:REFfor Checked builds.Fixes #191