aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build/local-derivation-goal.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index 518edae9c..21d7d7408 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -1778,6 +1778,10 @@ void LocalDerivationGoal::runChild()
if (personality(PER_LINUX32) == -1)
throw SysError("cannot set i686-linux personality");
}
+ if (drv->platform == "armv7l-linux" || drv->platform == "armv6l-linux") {
+ if (personality(PER_LINUX32) == -1)
+ throw SysError("cannot set 32bit linux personality");
+ }
/* Impersonate a Linux 2.6 machine to get some determinism in
builds that depend on the kernel version. */