summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/dtoa
diff options
context:
space:
mode:
authorLuflosi <luflosi@luflosi.de>2021-04-26 12:01:28 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2021-04-26 15:03:59 +0200
commitecb3b74a438dbe6398db7403afdc6c38237a83d6 (patch)
tree699eab66c68b73641c444d45c34fb087bbd260a0 /pkgs/development/ocaml-modules/dtoa
parentc5120548fc236070bb63e9968c06646464abac79 (diff)
downloadnixpkgs-ecb3b74a438dbe6398db7403afdc6c38237a83d6.tar
nixpkgs-ecb3b74a438dbe6398db7403afdc6c38237a83d6.tar.gz
nixpkgs-ecb3b74a438dbe6398db7403afdc6c38237a83d6.tar.bz2
nixpkgs-ecb3b74a438dbe6398db7403afdc6c38237a83d6.tar.lz
nixpkgs-ecb3b74a438dbe6398db7403afdc6c38237a83d6.tar.xz
nixpkgs-ecb3b74a438dbe6398db7403afdc6c38237a83d6.tar.zst
nixpkgs-ecb3b74a438dbe6398db7403afdc6c38237a83d6.zip
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.
Diffstat (limited to 'pkgs/development/ocaml-modules/dtoa')
-rw-r--r--pkgs/development/ocaml-modules/dtoa/default.nix2
1 files changed, 1 insertions, 1 deletions
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";