nixpkgs/pkgs/development/compilers/swift/compiler
Randy Eckenrode e7cf9a7c45
swift: update for cc-wrapper changes
The Swift compiler derivation modifies the clang wrapper to use
`exec -a "$0"` to allow it to use the same binary for both `clang` and
`clang++`. The sed script it uses to do this fails after the cc-wrapper
changes in 6f2b3ba027 were merged.

This is fixed by updating `makeClangWrapper` to work with the cc-wrapper
changes by having Bash invoke a simple script that uses `exec -a "$0"`
to set the required name for clang.

This fixes the staging-next build failures with Swift on Darwin and Linux.

https://github.com/NixOS/nixpkgs/pull/248496#issuecomment-1676831102
2023-08-20 00:17:10 -04:00
..
patches swift: 5.7.3 -> 5.8 2023-04-30 15:03:20 +02:00
default.nix swift: update for cc-wrapper changes 2023-08-20 00:17:10 -04:00