Skip to content

Conversation

@bkhouri
Copy link
Contributor

@bkhouri bkhouri commented Nov 17, 2025

Update the PIF builder to take into account of the --[auto|disable|enable]-index-store command line option.

When set to auto, the PIF builder behaviour does the same as the Native build system.

Fixes: #9325
Issue: rdar://163961900

let fileSystem: FileSystem

/// The build parameters
let buildParameters: BuildParameters
Copy link
Contributor

Choose a reason for hiding this comment

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

We should avoid passing all the build parameters into the PIF builder, because generally things like platform changes shouldn't affect the output. Could we unconditionally encode the "auto" behavior in the PIF, and then override it to YES or NO in the build request if needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, I'll give that a try!

$0.severity == .error
}.isEmpty)

pif.workspace.projects.forEach({ project in
Copy link
Contributor Author

Choose a reason for hiding this comment

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

chore: remove this code block.

@bkhouri bkhouri force-pushed the t/main/gh9325_rdar163961900_integrate_index-store-with-swift-build branch 3 times, most recently from 93e0475 to 9855f6c Compare November 21, 2025 16:01
Update the PIF builder to take into account of the
`--[auto|disable|enable]-index-store` command line option.

When set to `auto`, the PIF builder behaviour does the same as the
Native build system.

Fixes: swiftlang#9325
Issue: rdar://163961900
@bkhouri bkhouri force-pushed the t/main/gh9325_rdar163961900_integrate_index-store-with-swift-build branch from 9855f6c to 5c79ce1 Compare November 21, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[Parity] Integration the --[auto|enable|disable]-index-store option with SwiftBuild

2 participants