Skip to content

Commit

Permalink
boost: fix build for non x86_64 hostPlatforms
Browse files Browse the repository at this point in the history
  • Loading branch information
tobim committed Nov 23, 2024
1 parent 5ec5cda commit 19c078d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/libraries/boost/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ let
"link=${link}"
"-sEXPAT_INCLUDE=${expat.dev}/include"
"-sEXPAT_LIBPATH=${expat.out}/lib"
"define=BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK"

# TODO: make this unconditional
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform ||
Expand Down Expand Up @@ -92,6 +93,7 @@ let
++ lib.optional (!enablePython) "--without-python"
++ lib.optional needUserConfig "--user-config=user-config.jam"
++ lib.optional (stdenv.buildPlatform.isDarwin && stdenv.hostPlatform.isLinux) "pch=off"
++ lib.optional (stdenv.cc.libcxx != null) "boost.stacktrace.from_exception=off"
++ lib.optionals stdenv.hostPlatform.isMinGW [
"threadapi=win32"
] ++ extraB2Args
Expand Down

0 comments on commit 19c078d

Please sign in to comment.