microsoft_gsl: fix darwin build

wip/little-gl
Stéphan Kochen 3 years ago committed by Jonathan Ringer
parent 1d5d237cf9
commit 29fe52f3bd
  1. 3
      pkgs/development/libraries/microsoft_gsl/default.nix

@ -21,7 +21,8 @@ stdenv.mkDerivation rec {
buildPhase = if nativeBuild then "make" else "true";
# https://github.com/microsoft/GSL/issues/806
cmakeFlags = [ "-DCMAKE_CXX_FLAGS=-Wno-catch-value" ];
cmakeFlags = lib.optionals stdenv.cc.isGNU
[ "-DCMAKE_CXX_FLAGS=-Wno-catch-value" ];
installPhase = ''
mkdir -p $out/include

Loading…
Cancel
Save