Skip to content

Conversation

@CodingCarpincho
Copy link
Contributor

  • Include FreeBSD version number in derived target triple
  • Always use rawValue when using OS enum as string

CC @jakepetroules @MaxDesiatov

Certain enum cases, such as `freeBSD`, contain capital letters. However, target triples must be entirely in lower case. The enum case's raw value reflects this, but our custom initializer for the Triple structure does not use it, resulting in an invalid target triple. This makes the generated SDK unusable if the user passed only the desired architecture instead of a complete triple.

To address this problem, the initializer should always request the rawValue explicitly.
Target triples for the FreeBSD platform must include the FreeBSD version number at the end of the triple. If we use a derived target triple, then the version number won't be included, resulting in the SDK not being usable.
@CodingCarpincho
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

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

Thanks!

@MaxDesiatov
Copy link
Contributor

@swift-ci test

@MaxDesiatov MaxDesiatov merged commit 7c4c479 into swiftlang:main Sep 9, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants