microsoft_gsl: Fix gcc8 build

This commit is contained in:
Daniel Schaefer 2019-09-13 11:35:50 +02:00
parent 7858f5add5
commit 5548ff632e

View file

@ -20,6 +20,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ catch cmake ];
buildPhase = if nativeBuild then "make" else "true";
# https://github.com/microsoft/GSL/issues/806
cmakeFlags = [ "-DCMAKE_CXX_FLAGS=-Wno-catch-value" ];
installPhase = ''
mkdir -p $out/include
mv ../include/ $out/