Skip to content

Use /INCREMENTAL:NO for Debug - #86170

Merged
AaronRobinsonMSFT merged 4 commits into
dotnet:mainfrom
kunalspathak:incremental-vs
May 15, 2023
Merged

AaronRobinsonMSFT merged 4 commits into
dotnet:mainfrom
kunalspathak:incremental-vs

Conversation

@kunalspathak

@kunalspathak kunalspathak commented May 12, 2023 •

Copy link
Copy Markdown
Contributor

Stop doing /INCREMENTAL:YES

Fixes #64082.

@kunalspathak
kunalspathak requested a review from hoyosjs May 12, 2023 19:39
@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 12, 2023
@ghost ghost assigned kunalspathak May 12, 2023
@kunalspathak

Copy link
Copy Markdown
Contributor Author

@dotnet/jit-contrib

@kunalspathak
kunalspathak requested a review from jkoritzinsky May 12, 2023 19:40
@BruceForstall

Copy link
Copy Markdown
Contributor

@dotnet/runtime-infrastructure @AaronRobinsonMSFT

Comment thread eng/native/configurecompiler.cmake Resolved

@hoyosjs hoyosjs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still surprised this requires VS to repro and not just using link.exe, but if we haven't seen it elsewhere...

Comment thread eng/native/configurecompiler.cmake Resolved
@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

@kunalspathak I think we should just fix #64082.

@kunalspathak

kunalspathak commented May 14, 2023 •

Copy link
Copy Markdown
Contributor Author

@kunalspathak I think we should just fix #64082.

I agree, but I don't have enough knowledge in that area to figure out what is the right fix.

Given that the original issue is open from at least 5 months, I want to at least do an interim fix because it is very painful during codegen development whenever we create coreclr.sln, we have to remember to manually turn this setting OFF before doing the build. We can certainly revert this when we fix it properly.

@BruceForstall

Copy link
Copy Markdown
Contributor

Does this affect incremental builds using the command line? I've never seen the problem, but I always build using the command line build.cmd

@kunalspathak

Copy link
Copy Markdown
Contributor Author

Does this affect incremental builds using the command line? I've never seen the problem, but I always build using the command line build.cmd

It shouldn't and that's the reason we have the condition about Visual Studio and again, this is only for DEBUG. The Checked and Release are untouched.

@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

I agree, but I don't have enough knowledge in that area to figure out what is the right fix.

Okay. Let me take a look.

Comment thread eng/native/configurecompiler.cmake Resolved
@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

This is the correct fix for #64082.

@AaronRobinsonMSFT AaronRobinsonMSFT added the area-Infrastructure-coreclr Only use for closed issues label May 15, 2023
@ghost

ghost commented May 15, 2023

Copy link
Copy Markdown

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Stop doing /INCREMENTAL:YES

Fixes #64082.

Author: kunalspathak
Assignees: kunalspathak
Labels:

area-Infrastructure-coreclr, needs-area-label

Milestone: -

@AaronRobinsonMSFT AaronRobinsonMSFT removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 15, 2023
@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 8.0.0 milestone May 15, 2023
@AaronRobinsonMSFT
AaronRobinsonMSFT merged commit ef2d067 into dotnet:main May 15, 2023

if (CMAKE_GENERATOR MATCHES "^Visual Studio.*$")
# Debug build specific flags
# The Ninja generator doesn't appear to have the default `/INCREMENTAL:ON` that

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guess that's a typo

@ghost ghost locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Infrastructure-coreclr Only use for closed issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fatal error LNK1295: '/INCREMENTAL' not compatible with '/DEBUGTYPE' specification...

5 participants