Skip to content

Commit 848699d

Browse files
committed
root: fix darwin build
1 parent db99d98 commit 848699d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/applications/science/misc/root/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ stdenv.mkDerivation rec {
223223
]}"
224224
'';
225225

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

0 commit comments

Comments
 (0)