Nix on macOS | 1147 Members | |
| “There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org | 182 Servers |
| Sender | Message | Time |
|---|---|---|
| 29 Nov 2025 | ||
🤨 | 01:13:02 | |
Oh, you have to explicitly disable SWIFT_ENABLE_SWIFT_IN_SWIFT now to get the C++-only compiler. | 01:30:53 | |
| 02:27:20 | |
| Looks like I’m also hitting unguarded availability errors. 🫠 | 02:27:50 | |
| 03:20:11 | |
| That’s a weird one. | 03:20:15 | |
| samasaur: Have you seen anything like that? | 04:41:51 | |
| Hmm. Actually, it might be similar to https://github.com/swiftlang/swift/pull/84413 | 04:45:13 | |
| I applied a similar patch and got further.
| 05:07:17 | |
| I’m starting to think my time might be better spent on getting 5.10.1 refactored and then add 6.2.1. | 05:11:59 | |
| (One issue is the SDK ….) | 05:13:27 | |
| that is not an error i am familiar with so im glad you found something similar | 05:15:22 | |
| https://github.com/search?q=repo%3Aswiftlang%2Fswift%20-O3&type=code | 05:17:39 | |
| I wonder if I’m hitting the LLVM 21 codegen bug. | 05:17:48 | |
| Nope, hitting https://github.com/swiftlang/swift/pull/80920#issuecomment-2830656229 | 18:05:40 | |
| I really didn’t want to have to maintain Swift 5.x just to bootstrap Swift 6.x, especially with the 14.4 SDK due for removal in the future. | 18:07:12 | |
| * | 18:07:30 | |
| * | 18:07:45 | |
| 19:18:34 | |
| Progress! | 19:18:53 | |
| 19:23:51 | |
| Next is swift-driver and swiftpm. Also, the bootstrap story. | 20:23:55 | |
One thing I am doing differently is (trying to) build dependencies as packages. I also want to see if I can have actual swift-driver and swift-syntax packages. swiftPackages.swift will just symlink together swiftc and swift-driver. | 20:25:55 | |
| Once I have this working, I want to go back and split out the stdlib into its own package, which should help make cross-compilation possible. It’s not supported currently. | 20:26:45 | |
| I am working on this for 6.2.1, but I plan to land the changes for 5.10.1 first (moving it into the new pattern). 6.2.1 will be a separate PR. | 20:27:38 | |
| That sounds like a solid plan. | 22:55:28 | |
| 30 Nov 2025 | ||
| So far the alternate approach seems to be working. I can patch sources in Swift packages and then use a hook to expose them to SwiftPM. Unfortunately, the SDK requires observability, which makes the C++-only bootstrap compiler pretty useless. | 04:05:33 | |
| Actually, just importing Foundation blows up the build. | 04:19:57 | |
| This sucks. The 26.0 SDK appears to use macros unconditionally in the Observation module. The 14.4 SDK has guards for when macros are disabled, so the module doesn’t blow up. | 04:25:47 | |
| I don’t know how this bootstrap is going to work in that case. | 04:26:55 | |