ocamlPackages.dtoa: disable hardening feature based on more accurate condition

The `strictoverflow` hardening feature causes a build failure when using Clang as the compiler, not just on Darwin.
This commit is contained in:
Luflosi 2021-04-26 12:01:28 +02:00 committed by Vincent Laporte
parent c5120548fc
commit ecb3b74a43

View file

@ -13,7 +13,7 @@ buildDunePackage rec {
sha256 = "0zkhn0rdq82g6gamsv6nkx6i44s8104nh6jg5xydazl9jl1704xn";
};
hardeningDisable = lib.optional stdenv.isDarwin "strictoverflow";
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
meta = with lib; {
homepage = "https://github.com/flowtype/ocaml-dtoa";