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
Add support to define a default target in manifest file #18
Conversation
@@ -805,6 +807,15 @@ bool BuildSystemImpl::build(StringRef target) { | |||
// Create the execution queue. | |||
executionQueue = delegate.createExecutionQueue(); | |||
|
|||
// If target name is not passed then we try to load the default target name | |||
// from manifest file | |||
if (target.size() < 1) { |
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.
You can use target.empty()
(and likewise two lines below).
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
Looks great, can we get a test case and an update the the docs on the manifest file format ( |
@ddunbar done |
|
||
The default target to build can be specified by including an entry for the | ||
empty string (`""`). | ||
This section defines default target to build when manifest is loaded. |
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.
... defines the default ...
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
bb1f7d9
to
3b438f0
Compare
LGTM, squash and merge away! Thanks! |
3b438f0
to
08aed6a
Compare
squashed, weirdly don't have merge access in this repo |
Fixes https://bugs.swift.org/browse/SR-1173