root: fix darwin build

This commit is contained in:
Dmitry Kalinkin 2024-06-28 12:13:50 -04:00
parent db99d98201
commit 848699d4c1

View File

@ -223,6 +223,9 @@ stdenv.mkDerivation rec {
]}"
'';
# error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer
CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-faligned-allocation";
# To use the debug information on the fly (without installation)
# add the outPath of root.debug into NIX_DEBUG_INFO_DIRS (in PATH-like format)
# and make sure that gdb from Nixpkgs can be found in PATH.