mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-18 07:29:09 +00:00
tbb_2021_8: fix build with clang 16
This commit is contained in:
parent
1a16309ca7
commit
db9723d9e7
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user