diff options
author | Vikram Narayanan <vikram186@gmail.com> | 2021-11-22 12:14:18 -0800 |
---|---|---|
committer | Vikram Narayanan <vikram186@gmail.com> | 2021-11-22 12:19:55 -0800 |
commit | 528716bb8e61dfc443566c9f3345df4b25d72483 (patch) | |
tree | 81fbcfd7e4afc13c2846dd5b78c0e2774c13706d /pkgs/development/compilers/ocaml | |
parent | 2676de37fe0a62f983f14eefb5ef3d54fc40c963 (diff) | |
download | nixpkgs-528716bb8e61dfc443566c9f3345df4b25d72483.tar nixpkgs-528716bb8e61dfc443566c9f3345df4b25d72483.tar.gz nixpkgs-528716bb8e61dfc443566c9f3345df4b25d72483.tar.bz2 nixpkgs-528716bb8e61dfc443566c9f3345df4b25d72483.tar.lz nixpkgs-528716bb8e61dfc443566c9f3345df4b25d72483.tar.xz nixpkgs-528716bb8e61dfc443566c9f3345df4b25d72483.tar.zst nixpkgs-528716bb8e61dfc443566c9f3345df4b25d72483.zip |
ocaml: Fix aarch64-darwin build
Diffstat (limited to 'pkgs/development/compilers/ocaml')
-rw-r--r-- | pkgs/development/compilers/ocaml/generic.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ocaml/generic.nix b/pkgs/development/compilers/ocaml/generic.nix index 1b6a3b56e62..3aa90733a92 100644 --- a/pkgs/development/compilers/ocaml/generic.nix +++ b/pkgs/development/compilers/ocaml/generic.nix @@ -64,7 +64,12 @@ stdenv.mkDerivation (args // { "-target ${stdenv.targetPlatform.config}" ]; dontAddStaticConfigureFlags = lib.versionOlder version "4.08"; - configurePlatforms = lib.optionals (lib.versionAtLeast version "4.08") [ "host" "target" ]; + + # on aarch64-darwin using --host and --target causes the build to invoke + # `aarch64-apple-darwin-clang` while using assembler. However, such binary + # does not exist. So, disable these configure flags on `aarch64-darwin`. + # See #144785 for details. + configurePlatforms = lib.optionals (lib.versionAtLeast version "4.08" && !(stdenv.isDarwin && stdenv.isAarch64)) [ "host" "target" ]; # x86_64-unknown-linux-musl-ld: -r and -pie may not be used together hardeningDisable = lib.optional (lib.versionAtLeast version "4.09" && stdenv.hostPlatform.isMusl) "pie"; |