about summary refs log tree commit diff
path: root/src/nix-build/nix-build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-01T16·09+0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-01T16·09+0100
commit19477e8815a7c9b91c82278ec0e22957c97bec16 (patch)
treed84fdbba9c19e4ddf94d15566d655271730ad778 /src/nix-build/nix-build.cc
parente7b23eb5ab418ca7194f6575014f40bf4d9e6afd (diff)
nix-build: Ignore --indirect
Note that nix-build always creates indirect roots.

Fixes #1830.
Diffstat (limited to 'src/nix-build/nix-build.cc')
-rwxr-xr-xsrc/nix-build/nix-build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 1b249427537d..3d02276bf420 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -141,7 +141,7 @@ void mainWrapped(int argc, char * * argv)
         else if (*arg == "--version")
             printVersion(myName);
 
-        else if (*arg == "--add-drv-link")
+        else if (*arg == "--add-drv-link" || *arg == "--indirect")
             ; // obsolete
 
         else if (*arg == "--no-out-link" || *arg == "--no-link")