Skip to content
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

[SE-0085] Add a package subcommand to handle package-oriented operations #364

Merged
merged 2 commits into from
May 22, 2016

Conversation

abertelrud
Copy link
Contributor

This moves the package-management commands from the build subcommand to
package, but leaves building (and, currently, cleaning) on the build
subcommand. The test subcommand is likewise unmodified.

I had to temporarily move down the enums for InitMode and ShowDependen-
ciesMode, so that both package and build can share them, but this will
be consolidated again when build and test are reimplemented in terms of
package as well. The build and test functionality is not yet moved in
order to minimize changes while still ending up with the desired func-
tionality.

…tions.

This moves the package-management commands from the `build` subcommand to
`package`, but leaves building (and, currently, cleaning) on the `build`
subcommand.  The `test` subcommand is likewise unmodified.

I had to temporarily move down the enums for InitMode and ShowDependen-
ciesMode, so that both package and build can share them, but this will
be consolidated again when build and test are reimplemented in terms of
package as well.  The build and test functionality is not yet moved in
order to minimize changes while still ending up with the desired func-
tionality.
@abertelrud abertelrud force-pushed the package-subcommand branch from 9df72a6 to 84e7ac1 Compare May 21, 2016 22:33
print(" --verbose Increase verbosity of informational output [-v]")
print(" -Xcc <flag> Pass flag through to all C compiler instantiations")
print(" -Xlinker <flag> Pass flag through to all linker instantiations")
print(" -Xswiftc <flag> Pass flag through to all Swift compiler instantiations")
Copy link
Contributor

Choose a reason for hiding this comment

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

Random thought, I wonder if xcodeproj generation might be ok to leave on swift build? That would allow us to keep all build related options there. From a certain perspective it is a "different way of building" although obvious from other perspectives it is a completely separate command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered that, but it really didn't feel right from a usage perspective. We can open up a separate SE for that, I think. There is still some refactoring to do here, and I think we can find a way to not have to repeat this information, from a technical perspective (through a richer way of being able to define options, and which options apply to which subcommands).

@ddunbar
Copy link
Contributor

ddunbar commented May 22, 2016

LGTM!

@abertelrud abertelrud merged commit a8fb81c into swiftlang:master May 22, 2016
@abertelrud abertelrud deleted the package-subcommand branch May 23, 2016 22:20
aciidgh pushed a commit to aciidgh/swift-package-manager that referenced this pull request Jan 11, 2019
[gtest] Simplify include structure for gtest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants