Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toolchains/cc: Fix process getting killed on aarch64-darwin during li…
…nking On aarch64 Darwin, when using a nixpkgs provided cc toolchain, we have [seen][1] the linking step to fail as the process got killed: ``` bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/rules_haskell/haskell/ghc_wrapper: line 80: 90734 Killed: 9 "${compile_flags[@]}" "${extra_args[@]}" 2>&1 90736 Done | drop_loaded_and_warning 1>&2 ``` More specifically this happened when trying to add an rpath to a dylib calling the `install_name_tool`, but running the same command manually succeeded. This seems to be caused by mixing different tools from stdenv.cc and darwin.cctools, especially the fact that the tools from the latter overwrote tools from the former. Only add missing tools not provided by the current cc toolchain from the darwin.cctools package instead. [1]: tweag/rules_haskell#2101
- Loading branch information