-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Allow passing extra arguments to plugin compilation #5966
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -326,15 +326,35 @@ public struct BuildOptions: ParsableArguments { | |
| ) | ||
| public var xcbuildFlags: [String] = [] | ||
|
|
||
| @Option( | ||
| name: .customLong("Xbuild-tools-swiftc", withSingleDash: true), | ||
| parsing: .unconditionalSingleValue, | ||
| help: ArgumentHelp( | ||
| "Pass flag to Swift compiler invocations for build-time executables (manifest and plugins)", | ||
| visibility: .hidden | ||
| ) | ||
| ) | ||
| public var _buildToolsSwiftCFlags: [String] = [] | ||
|
|
||
| @Option( | ||
| name: .customLong("Xmanifest", withSingleDash: true), | ||
| parsing: .unconditionalSingleValue, | ||
| help: ArgumentHelp( | ||
| "Pass flag to the manifest build invocation", | ||
| "Pass flag to the manifest build invocation. Deprecated: use '-Xbuild-tools-swiftc' instead", | ||
| visibility: .hidden | ||
| ) | ||
| ) | ||
| var manifestFlags: [String] = [] | ||
| public var _deprecated_manifestFlags: [String] = [] | ||
|
|
||
| var manifestFlags: [String] { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice |
||
| self._deprecated_manifestFlags.isEmpty ? | ||
| self._buildToolsSwiftCFlags : | ||
| self._deprecated_manifestFlags | ||
| } | ||
|
|
||
| var pluginSwiftCFlags: [String] { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not blocking, but wasnt the idea to also expose this is a user facing flag? or is that for next PR so we can debbate the name? :D
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean supporting both
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could have been my misunderstanding of he goal of this PR. in any case as you say this sets the ground work if needed, and this feedback is by no means to hold the PR back 👍 |
||
| self._buildToolsSwiftCFlags | ||
| } | ||
|
|
||
| public var buildFlags: BuildFlags { | ||
| BuildFlags( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.