Skip to content

Commit

Permalink
nix: Add std parameter to mkTask
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 24, 2024
1 parent 0ed0d44 commit 5850266
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hacking/nix/scope/world/mk-task.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ in
, release ? true
, profile ? if release then "release" else (if test then "test" else "dev")

, std ? false
, sameProfileForSysroot ? false
, profileForSysroot ? if sameProfileForSysroot then profile else "release"

Expand Down Expand Up @@ -70,6 +71,7 @@ let
];

sysroot = (if replaceSysroot != null then replaceSysroot else buildSysroot) {
inherit std;
inherit rustEnvironment;
inherit targetTriple;
profile = profileForSysroot;
Expand Down Expand Up @@ -110,6 +112,7 @@ let
};

prunedArgs = builtins.removeAttrs args [
"std"
"extraProfile"
"replaceSysroot"
"getELF"
Expand Down

0 comments on commit 5850266

Please sign in to comment.