fix: Nix: Lean module ccache
Now I remember again why I did that the way I did it
This commit is contained in:
parent
d61cb698aa
commit
bc0010b84c
1 changed files with 3 additions and 1 deletions
|
|
@ -83,7 +83,9 @@ in
|
|||
oPath = drv.relpath + ".o";
|
||||
buildCommand = ''
|
||||
mkdir -p $out/$(dirname ${drv.relpath})
|
||||
leanc -c -o $out/$oPath ${drv.c}/${drv.cPath} ${if debug then "-g" else "-O3 -DNDEBUG"}
|
||||
# make local "copy" so `drv`'s Nix store path doesn't end up in ccache's hash
|
||||
ln -s ${drv.c}/${drv.cPath} src.c
|
||||
leanc -c -o $out/$oPath src.c ${if debug then "-g" else "-O3 -DNDEBUG"}
|
||||
'';
|
||||
};
|
||||
singleton = name: value: listToAttrs [ { inherit name value; } ];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue