Skip to content

Commit

Permalink
Merge pull request #309755 from annaleeleaves/gnuchess-c++14
Browse files Browse the repository at this point in the history
gnuchess: unbreak clang build with -std=c++14
  • Loading branch information
wegank authored May 7, 2024
2 parents e62a936 + a4e357c commit 4e0e5dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/games/gnuchess/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4e0e5dd

Please sign in to comment.