about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libmain/shared.cc2
-rw-r--r--src/libstore/globals.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 9c62e320f66e..e1280911b399 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -191,7 +191,7 @@ static void initAndRun(int argc, char * * argv)
         else if (arg == "--keep-going" || arg == "-k")
             settings.keepGoing = true;
         else if (arg == "--fallback")
-            settings.tryFallback = true;
+            settings.set("build-fallback", "true");
         else if (arg == "--max-jobs" || arg == "-j")
             settings.set("build-max-jobs", getArg(arg, i, args.end()));
         else if (arg == "--cores")
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index 7dc2e714bc9d..f5f4f15f011f 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -118,9 +118,10 @@ void Settings::set(const string & name, const string & value)
 
 void Settings::update()
 {
-    get(thisSystem, "system");
+    get(tryFallback, "build-fallback");
     get(maxBuildJobs, "build-max-jobs");
     get(buildCores, "build-cores");
+    get(thisSystem, "system");
     get(maxSilentTime, "build-max-silent-time");
     get(buildTimeout, "build-timeout");
     get(reservedSize, "gc-reserved-space");