You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Immediately run into Swift expecting there to be a source directory for ninja. Why not use the ninja that's installed on the system?
[./utils/build-script] ERROR: can't find source directory for ninja (tried /home/parallels/ninja)
Describe alternatives you've considered
Well, I can probably get it to build (and I have before), but the build seems rather brittle and gets confused by other things I happen to have installed (such as another version of llvm). I didn't want to mess up things on my mac just to get swift building, so I switched to an ubuntu vm. Also tried a second mac but that was running a beta OS and I quickly hit issues there. Having an easily reproducible build would be nice :)
A flake would also be something I would love to see. Currently, the nixpkgs Swift version is lagging behind (5.8 instead of 5.10). Seeing more first class support for Nix would wonderful so we can use Nix to reliably build current-version Swift projects!
A flake would also be something I would love to see. Currently, the nixpkgs Swift version is lagging behind (5.8 instead of 5.10). Seeing more first class support for Nix would wonderful so we can use Nix to reliably build current-version Swift projects!
@softinio thanks for sharing this option! A flake specifically for Swift for use across macOS and Linux would be something I personally would love to see 😄
Is your feature request related to a problem? Please describe.
I'm just having trouble building the compiler and setting up a dev environment. I think nix may be able to help make this process easier :)
Building with
./swift/utils/build-toolchain com.whatever
Describe the solution you'd like
I'm playing around with this shell.nix file on ubuntu:
Immediately run into Swift expecting there to be a source directory for ninja. Why not use the ninja that's installed on the system?
[./utils/build-script] ERROR: can't find source directory for ninja (tried /home/parallels/ninja)
Describe alternatives you've considered
Well, I can probably get it to build (and I have before), but the build seems rather brittle and gets confused by other things I happen to have installed (such as another version of llvm). I didn't want to mess up things on my mac just to get swift building, so I switched to an ubuntu vm. Also tried a second mac but that was running a beta OS and I quickly hit issues there. Having an easily reproducible build would be nice :)
Additional Context
There is a (broken) nix package for Swift here: https://github.com/NixOS/nixpkgs/blob/nixos-22.05/pkgs/development/compilers/swift/default.nix#L396. It applies various patches to make things work. It's not really suitable for creating a development environment to work on the compiler, AFAICT, but it may offer some insight into how to make things easier.
The text was updated successfully, but these errors were encountered: