build-remote: take extra-platforms into account

This commit is contained in:
Linus Heckemann 2018-03-16 22:50:57 +00:00
parent 637701b604
commit 639c166647

View file

@ -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);