Skip to content

Commit

Permalink
range-v3: use -std=c++17 due to compilation error with gcc_13
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhjr committed Sep 11, 2024
1 parent b1e9a03 commit 1bd5351
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/range-v3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ stdenv.mkDerivation rec {
doCheck = !stdenv.isAarch64;
checkTarget = "test";

env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-std=c++17";
};

meta = with lib; {
description = "Experimental range library for C++11/14/17";
homepage = "https://github.com/ericniebler/range-v3";
Expand Down

0 comments on commit 1bd5351

Please sign in to comment.