Nix dynamic linker on Mac is not executable
Closed this issue · 1 comments
jedahu commented
On Mac, $NIX_CC/nix-support/dynamic-linker
is /usr/lib/dyld
which unlike ld-linux
is not executable. Which means this command results in /usr/lib/dyld: /usr/lib/dyld: cannot execute binary file
.
It looks like sbt-protoc contains the same problem:
One workaround is to unset NIX_CC
in the shell hook, but that introduces its own problems. Not sure what a proper fix will look like.
thesamet commented
We should probably make maybeNixDynamicLinker
return None if it's not Linux.