-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build selected build-target when starting to debug #2987
Conversation
1b37614
to
77a0bd4
Compare
@microsoft-github-policy-service agree |
77a0bd4
to
2b7f68d
Compare
src/cmakeProject.ts
Outdated
const buildResult = await this.build([chosen.name]); | ||
const defaultBuildTargets = await this.getDefaultBuildTargets(); | ||
const allTargetsToBuild = new Set(defaultBuildTargets); | ||
allTargetsToBuild.add(chosen.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if the defaultBuildTargets
is equal to allTargetName
. In that case, don't add the chosen.name
to the list of targets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, you should check if the set contains this.allTargetName
. If that's the case, then you don't need to add the debug target to the list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this.allTargetName
instead of all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
2b7f68d
to
b8eaec2
Compare
b8eaec2
to
dfaf8f7
Compare
This changes visible behavior
The following changes are proposed:
The purpose of this change
For some projects, you always want to build ALL. This allows to set ALL as the build target, but still launch the selected launch target.