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
This commit is contained in:
Luflosi 2020-09-09 12:20:48 +02:00 committed by Jon
parent c97fcc3fe0
commit fbefec0d3e

View file

@ -27,6 +27,9 @@ stdenv.mkDerivation rec {
doCheck = true;
# Causes build failure due to warning
hardeningDisable = stdenv.lib.optional stdenv.cc.isClang "strictoverflow";
buildPhase = ''
export SOURCE_DIR=$(pwd)
export HOME=$TMPDIR