Merge pull request #309755 from annaleeleaves/gnuchess-c++14

gnuchess: unbreak clang build with -std=c++14
This commit is contained in:
Weijia Wang 2024-05-07 11:30:59 +02:00 committed by GitHub
commit 4e0e5dd057
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ makeWrapper ];
configureFlags = [
# register keyword is removed in c++17 so stick to c++14
"CXXFLAGS=-std=c++14"
];
postInstall = ''
wrapProgram $out/bin/gnuchessx --set PATH "$out/bin"
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"