aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
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 08b647cd6..2d81f72c1 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. */