diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-11-08 09:39:39 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-11-08 09:39:39 +0100 |
commit | e5f3d587b92fc7e5be5a20413ed5b486acfbdf48 (patch) | |
tree | 8faa262a7c8b8ac27b8fcb255103a1f2eaa63eaf /pkgs/development/tools | |
parent | 32da89a1a1dfb314f614213cdd0f574baf873156 (diff) |
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"; |