Skip to content

Commit

Permalink
boost-build: fix aarch64 clang cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
reckenrode committed Oct 10, 2024
1 parent c90b083 commit 90df0c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/tools/boost-build/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ stdenv.mkDerivation {
patches = useBoost.boostBuildPatches or []
++ lib.optional (useBoost ? version && lib.versionAtLeast useBoost.version "1.81") ./fix-clang-target.patch;

postPatch = lib.optionalString (useBoost ? version && lib.versionAtLeast useBoost.version "1.82") ''
postPatch = ''
# Upstream uses arm64, but nixpkgs uses aarch64.
substituteInPlace src/tools/clang.jam \
--replace-fail 'arch = arm64' 'arch = aarch64'
'' + lib.optionalString (useBoost ? version && lib.versionAtLeast useBoost.version "1.82") ''
patchShebangs --build src/engine/build.sh
'';

Expand Down

0 comments on commit 90df0c3

Please sign in to comment.