about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-05-12T20·36-0400
committerShea Levy <shea@shealevy.com>2015-05-12T20·36-0400
commit71083f9e5ecfb94d110664499d87cea3e6c61b2e (patch)
treecc2157f672d32ef4f9f64b201d79e947bfec4913 /src/libstore/build.cc
parent8972f7c14a196041f8faef2f2c3f7bd705ab4e07 (diff)
Don't try to map /bin/sh to a store path on non-Linux
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 08b647cd61..2d81f72c12 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1786,8 +1786,10 @@ void DerivationGoal::startBuilder()
     if (useChroot) {
 
         string defaultChrootDirs;
+#if CHROOT_ENABLED
         if (isInStore(BASH_PATH))
             defaultChrootDirs = "/bin/sh=" BASH_PATH;
+#endif
 
         /* Allow a user-configurable set of directories from the
            host file system. */