git.iko.soy/typeable/nixpkgs
on master help sign in
cc-wrapper: Use same dynamic loader on all Darwin, not just x86_64

In practice, this is correct because iOS is on ARM and puts the loader there.

commit13fc982e650381c6ca5a76470ae1d23abbc000ab authorJohn Ericson <John.Ericson@Obsidian.Systems> dateMon 18 Sep 2017, 19:23 (9 years ago) parenta44bbc7
1 file changed+2−2
pkgs/build-support/cc-wrapper/default.nix+2−2
pkgs/build-support/cc-wrapper/default.nix+2−2
@@ -64,11 +64,11 @@ let
6464 else if targetPlatform.system == "i686-linux" then "${libc_lib}/lib/ld-linux.so.2"
6565 else if targetPlatform.system == "x86_64-linux" then "${libc_lib}/lib/ld-linux-x86-64.so.2"
6666 # ARM with a wildcard, which can be "" or "-armhf".
67− else if targetPlatform.isArm then "${libc_lib}/lib/ld-linux*.so.3"
67+ else if (with targetPlatform; isArm && isLinux) then "${libc_lib}/lib/ld-linux*.so.3"
6868 else if targetPlatform.system == "aarch64-linux" then "${libc_lib}/lib/ld-linux-aarch64.so.1"
6969 else if targetPlatform.system == "powerpc-linux" then "${libc_lib}/lib/ld.so.1"
7070 else if targetPlatform.system == "mips64el-linux" then "${libc_lib}/lib/ld.so.1"
71− else if targetPlatform.system == "x86_64-darwin" then "/usr/lib/dyld"
71+ else if targetPlatform.isDarwin then "/usr/lib/dyld"
7272 else if stdenv.lib.hasSuffix "pc-gnu" targetPlatform.config then "ld.so.1"
7373 else null;
7474