diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-24T20·58-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-24T20·58-0400 |
commit | a9e6752bbd888ab8fbc1cda6e4d539b2858c4cef (patch) | |
tree | 6d5ac4f9e784b91fe4382293eb84684038990dc1 /src/libmain/shared.cc | |
parent | 4aa1e5c55484ac02d28883292ee5c5806f5e4664 (diff) |
Include the output name in the GC root link
Output names are now appended to resulting GC symlinks, e.g. by nix-build. For backwards compatibility, if the output is named "out", nothing is appended. E.g. doing "nix-build -A foo" on a derivation that produces outputs "out", "bin" and "dev" will produce symlinks "./result", "./result-bin" and "./result-dev", respectively.
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r-- | src/libmain/shared.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index d39816586404..026db4173af0 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -33,16 +33,6 @@ static void sigintHandler(int signo) } -Path makeRootName(const Path & gcRoot, int & counter) -{ - counter++; - if (counter == 1) - return gcRoot; - else - return (format("%1%-%2%") % gcRoot % counter).str(); -} - - void printGCWarning() { static bool haveWarned = false; |