1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00
nix/nix-meson-build-support
Jörg Thalheim 287b54b49c build: Disable libstdc++ TBB backend to avoid unnecessary dependency
boost::concurrent_flat_map (used in libutil and libstore) includes the
C++17 <execution> header. GCC's libstdc++ implements parallel algorithms
using Intel TBB as the backend, which creates a link-time dependency on
libtbb even though we don't actually use any parallel algorithms.

Disable the TBB backend for libstdc++ by setting
_GLIBCXX_USE_TBB_PAR_BACKEND=0. This makes parallel algorithms fall back
to serial execution, which is acceptable since we don't use them anyway.

This only affects libstdc++ (GCC's standard library); other standard
libraries like libc++ (LLVM) are unaffected.

(cherry picked from commit 2f3ec16793)
2025-11-07 21:33:37 +00:00
..
asan-options treewide: Support builds with ASAN, enable in CI 2025-09-19 01:33:57 +03:00
big-objs meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
common build: Disable libstdc++ TBB backend to avoid unnecessary dependency 2025-11-07 21:33:37 +00:00
default-system-cpu meson: Fix nix_system_cpu for MIPS and 32 bit ARM systems 2025-07-27 00:50:53 +03:00
deps-lists meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
export treewide: Bump C++ standard version to C++23 2025-08-19 15:33:27 +03:00
export-all-symbols meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
generate-header meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
libatomic meson: link to libatomic on powerpc-linux 2025-09-10 18:50:35 +02:00
subprojects rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
windows-version flake: Add meson formatter 2025-06-11 22:08:03 +00:00