git.iko.soy/typeable/nixpkgs
on master help sign in
j: fix build on darwin

On darwin the compilation would fail with the following warning: ``` clang-7: error: argument unused during compilation: '-fno-strict-overflow' [-Werror,-Wunused-command-line-argument] ``` This error happens because the `-fno-strict-overflow` is passed to the compiler. To fix this, disable the `strictoverflow` hardening feature. Also see #39687. ZHF: #97479

commitfbefec0d3e1fde1ad36b661d44935959532b1c1c authorLuflosi <luflosi@luflosi.de> dateWed 9 Sep 2020, 12:20 (6 years ago) parentc97fcc3
1 file changed+3
pkgs/development/interpreters/j/default.nix+3
pkgs/development/interpreters/j/default.nix+3
@@ -27,6 +27,9 @@ stdenv.mkDerivation rec {
2727
2828 doCheck = true;
2929
30+ # Causes build failure due to warning
31+ hardeningDisable = stdenv.lib.optional stdenv.cc.isClang "strictoverflow";
32+
3033 buildPhase = ''
3134 export SOURCE_DIR=$(pwd)
3235 export HOME=$TMPDIR