diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 06d259606..b6293c15e 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2311,7 +2311,8 @@ void setupSeccomp() seccomp_release(ctx); }); - if (seccomp_arch_add(ctx, SCMP_ARCH_X86) != 0) + if (settings.thisSystem == "x86_64-linux" && + seccomp_arch_add(ctx, SCMP_ARCH_X86) != 0) throw SysError("unable to add 32-bit seccomp architecture"); for (int perm : { S_ISUID, S_ISGID }) {