Skip to content

Refactor more properties to use the new BuildFlags type#9801

Merged
jakepetroules merged 1 commit intoswiftlang:mainfrom
jakepetroules:eng/PR-build-flags
Mar 12, 2026
Merged

Refactor more properties to use the new BuildFlags type#9801
jakepetroules merged 1 commit intoswiftlang:mainfrom
jakepetroules:eng/PR-build-flags

Conversation

@jakepetroules
Copy link
Contributor

This brings us further along on not passing redundant and incompatible flags to Swift Build (#9756).

There is only one remaining unannotated flag, in Sources/Build/LLBuildCommands.swift, which appears to be specific only to the legacy build system. The remaining ones are in a deprecated constructor not used within SwiftPM itself, and in tests.

@jakepetroules
Copy link
Contributor Author

@swift-ci test

relativeTo: XCTestInstallation
).pathString,
]
].map { BuildFlag(value: $0, source: .defaultWindowsSettings) }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I can tell, all these testing search paths are handled correctly already.

@jakepetroules
Copy link
Contributor Author

@swift-ci test

@jakepetroules
Copy link
Contributor Author

@swift-ci test

This brings us further along on not passing redundant and incompatible flags to Swift Build (swiftlang#9756).

There is only one remaining unannotated flag, in Sources/Build/LLBuildCommands.swift, which appears to be specific only to the legacy build system. The remaining ones are in a deprecated constructor not used within SwiftPM itself, and in tests.
@jakepetroules
Copy link
Contributor Author

@swift-ci test

@jakepetroules
Copy link
Contributor Author

@swift-ci test windows platform

@jakepetroules jakepetroules enabled auto-merge (rebase) March 12, 2026 07:13
@jakepetroules jakepetroules moved this to In Progress in SwiftPM on SwiftBuild Mar 12, 2026
@jakepetroules jakepetroules merged commit e06f149 into swiftlang:main Mar 12, 2026
61 checks passed
@jakepetroules jakepetroules deleted the eng/PR-build-flags branch March 12, 2026 12:05
@github-project-automation github-project-automation bot moved this from In Progress to Done in SwiftPM on SwiftBuild Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants