Skip to content

Commit

Permalink
nix: use mold-wrapped for linking
Browse files Browse the repository at this point in the history
This version of mold can correctly find external system libraries if needed.
buck2 happily works anyway because the flake doesn't depend on system libraries,
but the previous version was still wrong.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
  • Loading branch information
thoughtpolice committed Jun 20, 2024
1 parent 8256eec commit 34f5a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
IOKit
Security
]);
packages = [ pkgs.cargo-bloat my-rust-bin pkgs.mold pkgs.reindeer pkgs.lld_16 pkgs.clang_16 ];
packages = [ pkgs.cargo-bloat my-rust-bin pkgs.mold-wrapped pkgs.reindeer pkgs.lld_16 pkgs.clang_16 ];
shellHook =
''
export BUCK2_BUILD_PROTOC=${pkgs.protobuf}/bin/protoc
Expand Down

0 comments on commit 34f5a7c

Please sign in to comment.