From ecb3b74a438dbe6398db7403afdc6c38237a83d6 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Mon, 26 Apr 2021 12:01:28 +0200 Subject: [PATCH] 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. --- pkgs/development/ocaml-modules/dtoa/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/dtoa/default.nix b/pkgs/development/ocaml-modules/dtoa/default.nix index da075f5c798..44bc5d7498b 100644 --- a/pkgs/development/ocaml-modules/dtoa/default.nix +++ b/pkgs/development/ocaml-modules/dtoa/default.nix @@ -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";