Skip to content

Commit

Permalink
dwarf-fortress.dfhack: use CXXFLAGS instead of NIX_CFLAGS_COMPILE
Browse files Browse the repository at this point in the history
See NixOS#79303.

Avoids warnings about -fpermissive not being a valid C flag.
  • Loading branch information
ncfavier committed Nov 18, 2022
1 parent a515239 commit 34e0667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/games/dwarf-fortress/dfhack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ in
});

# gcc 11 fix
NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionOlder version "0.47.05-r3") "-fpermissive";
CXXFLAGS = lib.optionalString (lib.versionOlder version "0.47.05-r3") "-fpermissive";

# As of
# https://github.com/DFHack/dfhack/commit/56e43a0dde023c5a4595a22b29d800153b31e3c4,
Expand Down

0 comments on commit 34e0667

Please sign in to comment.