nixpkgs/pkgs/development/compilers/swift
Zhong Jianxin 8dfed1b9a4 swift: Workaround Hydra darwin build problem
Fail to build with ninja 1.12 when NIX_BUILD_CORES is low (Hydra or Github Actions):

```
ld: warning: directory not found for option '-L/nix/store/g9rbp9m6vs1xj4jl6b6vjb6bm8kgr107-SDKs/MacOSX10.15.sdk/usr/lib/swift'
...
ld: warning: Could not find or use auto-linked library 'swiftCompatibility56'
Undefined symbols for architecture arm64:
  "__swift_FORCE_LOAD_$_swiftCompatibility56", referenced from:
      __swift_FORCE_LOAD_$_swiftCompatibility56_$_Optimizer in libswiftCompilerModules-bootstrapping1.a(Optimizer.o)
  ...
```

Can reproduce using `nix --option cores 2 build -f . swiftPackages.swift-unwrapped`.

Until we find out the exact cause, follow [swift upstream][1], pin ninja to version
1.11.1.

[1]: https://github.com/swiftlang/swift/pull/72989
2024-11-08 12:31:09 +08:00
..
compiler swift: Workaround Hydra darwin build problem 2024-11-08 12:31:09 +08:00
foundation treewide: update meta.maintainers for Swift suite 2024-07-17 23:34:16 -03:00
libdispatch treewide: update meta.maintainers for Swift suite 2024-07-17 23:34:16 -03:00
sourcekit-lsp treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
swift-docc treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
swift-driver treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
swift-format treewide: update meta.maintainers for Swift suite 2024-07-17 23:34:16 -03:00
swiftpm swiftpm: use darwinMinVersionHook to set the deployment target 2024-10-10 17:24:27 -04:00
swiftpm2nix swiftpm2nix: migrate to Swift suite directory 2024-07-17 23:34:17 -03:00
wrapper swift-wrapper: set up Darwin SDK paths for Swift 2024-10-10 01:07:16 -04:00
xctest treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
default.nix swift: set Foundation to null on Darwin 2024-10-10 17:24:27 -04:00
sources.nix