diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-27 23:39:26 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-27 23:41:03 +0200 |
commit | db9723d9e710ab7ebfe05af2c896d21bf8e7a1dc (patch) | |
tree | 1714646a2be50a35b03f3ab9519854fe2ba74ee0 | |
parent | 1a16309ca7990b33d78c5744e022569cf0cbbda8 (diff) | |
download | nixpkgs-db9723d9e710ab7ebfe05af2c896d21bf8e7a1dc.tar nixpkgs-db9723d9e710ab7ebfe05af2c896d21bf8e7a1dc.tar.gz nixpkgs-db9723d9e710ab7ebfe05af2c896d21bf8e7a1dc.tar.bz2 nixpkgs-db9723d9e710ab7ebfe05af2c896d21bf8e7a1dc.tar.lz nixpkgs-db9723d9e710ab7ebfe05af2c896d21bf8e7a1dc.tar.xz nixpkgs-db9723d9e710ab7ebfe05af2c896d21bf8e7a1dc.tar.zst nixpkgs-db9723d9e710ab7ebfe05af2c896d21bf8e7a1dc.zip |
tbb_2021_8: fix build with clang 16
-rw-r--r-- | pkgs/development/libraries/tbb/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/tbb/default.nix b/pkgs/development/libraries/tbb/default.nix index ff6a3343837..b6cc969b9f7 100644 --- a/pkgs/development/libraries/tbb/default.nix +++ b/pkgs/development/libraries/tbb/default.nix @@ -39,6 +39,8 @@ stdenv.mkDerivation rec { # Fix build with modern gcc # In member function 'void std::__atomic_base<_IntTp>::store(__int_type, std::memory_order) [with _ITp = bool]', NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ "-Wno-error=stringop-overflow" ] ++ + # error: variable 'val' set but not used + lib.optionals stdenv.cc.isClang [ "-Wno-error=unused-but-set-variable" ] ++ # Workaround for gcc-12 ICE when using -O3 # https://gcc.gnu.org/PR108854 lib.optionals (stdenv.cc.isGNU && stdenv.isx86_32) [ "-O2" ]; |