mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
ocaml: fix assembler on darwin
This commit is contained in:
parent
c5ed8beb47
commit
87843991ef
|
@ -76,7 +76,7 @@ stdenv.mkDerivation (args // {
|
|||
preConfigure = optionalString (!lib.versionAtLeast version "4.04") ''
|
||||
CAT=$(type -tp cat)
|
||||
sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
|
||||
'' + optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
|
||||
'' + optionalString (stdenv.isDarwin && !lib.versionAtLeast version "4.13") ''
|
||||
# Do what upstream does by default now: https://github.com/ocaml/ocaml/pull/10176
|
||||
# This is required for aarch64-darwin, everything else works as is.
|
||||
AS="${stdenv.cc}/bin/cc -c" ASPP="${stdenv.cc}/bin/cc -c"
|
||||
|
|
Loading…
Reference in a new issue