diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-11-09 04:59:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 04:59:28 +0100 |
commit | 51888670317df6c587a2fcba6a629be8c69ba848 (patch) | |
tree | 1675938b6e1f635dff97961fae5b154584cacddd /pkgs/development/tools | |
parent | 00a0662a3ca0e36397dcc5e3244a7286d46232d4 (diff) | |
parent | 4a11f504dcf4c025f828d15513362c98c39b4e0c (diff) |
Merge pull request #266222 from wegank/gengetopt-clang-16
gengetopt: fix build with clang 16
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/misc/gengetopt/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/gengetopt/default.nix b/pkgs/development/tools/misc/gengetopt/default.nix index d24d4b66d66c9..6420d56bba2f3 100644 --- a/pkgs/development/tools/misc/gengetopt/default.nix +++ b/pkgs/development/tools/misc/gengetopt/default.nix @@ -27,6 +27,10 @@ stdenv.mkDerivation rec { 'set +o posix' ''; + env = lib.optionalAttrs stdenv.cc.isClang { + CXXFLAGS = "-std=c++14"; + }; + meta = { description = "Command-line option parser generator"; |