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

Swift SDK bundle: no way to pass different toolset paths based on host supportedTriples? #8029

Open
1 task done
finagolfin opened this issue Oct 8, 2024 · 0 comments
Open
1 task done

Comments

@finagolfin
Copy link
Contributor

finagolfin commented Oct 8, 2024

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

The Swift SDK Bundle spec provides a way to specify the host triples supported in info.json, but then doesn't seem to use that info anywhere.

I thought one obvious reason to specify those was to provide toolset executables for multiple hosts, but there doesn't appear to be any way to specify the different hosts in swift-sdk.json or the toolset files.

For example, if I want to specify a different cCompiler in the toolset for linux x86_64, I can configure that. However, if the same Swift SDK bundle is used on linux AArch64 or macOS x86_64, there doesn't appear to be a way to specify alternate paths for those executables also.

@MaxDesiatov, an oversight in the Swift SDK bundle spec?

Expected behavior

The doc to provide a way to specify multiple host-platform-specific executables in a Swift SDK bundle

Actual behavior

I see no info on this.

Steps to reproduce

Not implemented

Swift Package Manager version/commit hash

All

Swift & OS version (output of swift --version ; uname -a)

All

@finagolfin finagolfin added the bug label Oct 8, 2024
@MaxDesiatov MaxDesiatov self-assigned this Oct 8, 2024
@MaxDesiatov MaxDesiatov changed the title SDK bundle: no way to pass different toolset paths based on host supportedTriples? Swift SDK bundle: no way to pass different toolset paths based on host supportedTriples? Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants