tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
tbb_2021_8: fix build with clang 16
Weijia Wang
2 years ago
db9723d9
1a16309c
+2
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
tbb
default.nix
+2
pkgs/development/libraries/tbb/default.nix
···
39
39
# Fix build with modern gcc
40
40
# In member function 'void std::__atomic_base<_IntTp>::store(__int_type, std::memory_order) [with _ITp = bool]',
41
41
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ "-Wno-error=stringop-overflow" ] ++
42
42
+
# error: variable 'val' set but not used
43
43
+
lib.optionals stdenv.cc.isClang [ "-Wno-error=unused-but-set-variable" ] ++
42
44
# Workaround for gcc-12 ICE when using -O3
43
45
# https://gcc.gnu.org/PR108854
44
46
lib.optionals (stdenv.cc.isGNU && stdenv.isx86_32) [ "-O2" ];