Skip to content

Conversation

NathanWalker
Copy link
Contributor

@NathanWalker NathanWalker commented Sep 8, 2025

The case which made the setup of nsld.sh problematic was with the known/reported issues with Metal on Xcode 26.
https://stackoverflow.com/questions/79660070/xcode-26-metal-compiler-error-metaltoolchain

https://www.reddit.com/r/swift/comments/1lfice9/xcode_cloud_26_doesnt_have_metal_toolchain/

Some projects will have transients that include it and will fail the build during this build script.
It can be ignored when not found, which allows project to build/operate as normal.

This change will link if the path exists, otherwise will skip and log that it skipped it with directory path logged for further debugging if needed.

@NathanWalker NathanWalker modified the milestones: 9.0, 8.9.3 Sep 8, 2025
@NathanWalker NathanWalker changed the title fix: metal toolchain is not included in Xcode 26 and can be ignored fix: link when clang path is present for any given library Sep 8, 2025
Removed early exit on missing toolchain clang and added execution of NS_LD.
@NathanWalker NathanWalker changed the title fix: link when clang path is present for any given library feat: improve robustness of linking with clang path checks Sep 8, 2025
@NathanWalker NathanWalker merged commit debc76d into main Sep 9, 2025
7 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.

1 participant