Skip to content

Conversation

@rconnell9
Copy link
Contributor

@rconnell9 rconnell9 commented Dec 1, 2025

Provide the downloadable metal toolchain to swiftbuild using EXTERNAL_TOOLCHAINS_DIR env variable

Motivation:

#9202 [Parity] error: unable to spawn process 'metal' (No such file or directory)

Requires CI to include Metal toolchain in order to enable Metal tests:
#9443

@rconnell9
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@jakepetroules jakepetroules left a comment

Choose a reason for hiding this comment

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

Looks great! Just one had minor point of feedback about the correctness of handling $(inherited) in constructing the build settings.

@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9
Copy link
Contributor Author

@swift-ci test

name: "SwiftBuildSupportTests",
dependencies: ["SwiftBuildSupport", "_InternalTestSupport", "_InternalBuildTestSupport"]
),
.testTarget(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should consider putting the new test in SwiftBuildSupportTests instead of creating a whole new test target since this is a fairly specific test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll include a follow-up

@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9
Copy link
Contributor Author

@swift-ci test windows self hosted

@rconnell9
Copy link
Contributor Author

@swift-ci test


#if os(macOS)
@Test(
.disabled("Require downloadable Metal toolchain"),
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (non-blocking): is it possible to detect the location of the metal toolchain and enable the test if it's detected?

@rconnell9
Copy link
Contributor Author

@swift-ci test macOS

@bkhouri
Copy link
Contributor

bkhouri commented Dec 5, 2025

@swift-ci test windows

@rconnell9 rconnell9 enabled auto-merge (squash) December 5, 2025 18:05
# Conflicts:
#	Sources/SwiftBuildSupport/SwiftBuildSystem.swift
@rconnell9
Copy link
Contributor Author

@swift-ci test

1 similar comment
@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9
Copy link
Contributor Author

@swift-ci test linux

@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9
Copy link
Contributor Author

@swift-ci Please Test Amazon Linux 2

@rconnell9
Copy link
Contributor Author

@swift-ci test linux

@rconnell9 rconnell9 merged commit 9653927 into swiftlang:main Dec 6, 2025
17 of 18 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.

4 participants