about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2018-03-16T22·50+0000
committerLinus Heckemann <git@sphalerite.org>2018-03-16T22·50+0000
commit639c166647ae733e927ae589864d996bb2d95b88 (patch)
treea9ffcde2b0206b6c660d7539e51a33582c8e0af5 /src
parent637701b6047bff23a7dea4e02bebf94660b8cb4c (diff)
build-remote: take extra-platforms into account
Diffstat (limited to 'src')
-rw-r--r--src/build-remote/build-remote.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc
index dbf8fe1b8f8a..5ec49b5252d2 100644
--- a/src/build-remote/build-remote.cc
+++ b/src/build-remote/build-remote.cc
@@ -98,7 +98,9 @@ int main (int argc, char * * argv)
             source >> drvPath;
             auto requiredFeatures = readStrings<std::set<std::string>>(source);
 
-            auto canBuildLocally = amWilling && (neededSystem == settings.thisSystem);
+            auto canBuildLocally = amWilling
+                &&  (  neededSystem == settings.thisSystem
+                    || settings.extraPlatforms.get().count(neededSystem) > 0);
 
             /* Error ignored here, will be caught later */
             mkdir(currentLoad.c_str(), 0777);