-
Notifications
You must be signed in to change notification settings - Fork 464
Clean ups to the swift-syntax-dev-utils and Package.swift #2200
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
Conversation
| ValidationFailure(node: .editorPlaceholderPattern, message: "could conform to trait 'MissingNode' but does not"), | ||
| ValidationFailure(node: .editorPlaceholderType, message: "could conform to trait 'MissingNode' but does not"), |
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.
After rebase those should not be needed anymore
…the top and add documentation to them Also, make some easy clean-ups: - Don’t set `SWIFTSYNTAX_NO_OSLOG_DEPENDENCY` because it’s not needed - Use the Swift settings of a target also for the corresponding test target. That’s what we already did for SwiftParser and SwiftParserTests. We should be consistent here.
`invokeSwiftPM` already sets `--verbose`. No need to pass it again in the `additionalArguments`.
24bf776 to
77819b7
Compare
|
@swift-ci Please test |
Package.swift
Outdated
| /// - Enables raw syntax validation (ie. implies `SWIFTSYNTAX_ENABLE_RAWSYNTAX_VALIDATION`) | ||
| /// - Enables alternate token introspection (ie. implies `SWIFTPARSER_ENABLE_ALTERNATE_TOKEN_INTROSPECTION`) |
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.
As written, neither of these are true. Both of these are only enabled if the environment variable is set.
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.
Oh, damn. That was still from an earlier version of the PR.
| name: "SwiftSyntaxTest", | ||
| dependencies: ["_SwiftSyntaxTestSupport", "SwiftSyntax", "SwiftSyntaxBuilder"] | ||
| dependencies: ["_SwiftSyntaxTestSupport", "SwiftSyntax", "SwiftSyntaxBuilder"], | ||
| swiftSettings: swiftSyntaxSwiftSettings |
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.
Out of interest, was this causing rebuilds of the other 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.
Nope, this PR is pure cleanup. Fixing all the rebuilds is
- Disable testable imports when testing swift-format swift-format#624
- Don’t set
SWIFT_BUILD_SCRIPT_ENVIRONMENTwhen building swift-format swift-format#630 - Don’t set
SWIFT_BUILD_SCRIPT_ENVIRONMENTwhen building swift-format swift-stress-tester#251 - [build] Build the SourceKit stress tester and SwiftEvolve next to each other swift#68562
- Pass
--verbosetoswift buildswift-stress-tester#252
This flag wasn’t used anywhere.
77819b7 to
e2f928d
Compare
|
@swift-ci Please test |
|
@swift-ci Please test |
SWIFTSYNTAX_NO_OSLOG_DEPENDENCYbecause it’s not needed--verbosetwice when invoking SwiftPM fromswift-syntax-dev-utilsinvokeSwiftPMalready sets--verbose. No need to pass it again in theadditionalArguments.--disable-sandbox. This flag wasn’t used anywhere.