Skip to content

Commit

Permalink
Nix: Add nativelink-debug target (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-singer authored Apr 1, 2024
1 parent 7997f03 commit c60fb55
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@
inherit cargoArtifacts;
});

nativelink-debug = craneLib.buildPackage (commonArgs
// {
inherit cargoArtifacts;
CARGO_BUILD_RUSTFLAGS = "-C target-feature=+crt-static --cfg tokio_unstable";
CARGO_PROFILE = "smol";
cargoExtraArgs = "--features enable_tokio_console";
});

hooks = import ./tools/pre-commit-hooks.nix {inherit pkgs;};

publish-ghcr = import ./tools/publish-ghcr.nix {inherit pkgs;};
Expand All @@ -143,7 +151,7 @@
};
};
packages = rec {
inherit publish-ghcr local-image-test nativelink;
inherit publish-ghcr local-image-test nativelink nativelink-debug;
default = nativelink;

lre-cc = import ./local-remote-execution/lre-cc.nix {inherit pkgs buildImage;};
Expand Down

0 comments on commit c60fb55

Please sign in to comment.