microsoft_gsl: Fix gcc8 build (#68638)

microsoft_gsl: Fix gcc8 build
This commit is contained in:
Jörg Thalheim 2019-09-13 10:55:05 +01:00 committed by GitHub
commit 742c485f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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/