forked from lix-project/lix
Simplify
This commit is contained in:
parent
9529de2eed
commit
46d86e06ba
|
@ -1779,15 +1779,14 @@ void LocalDerivationGoal::runChild()
|
||||||
i686-linux build on an x86_64-linux machine. */
|
i686-linux build on an x86_64-linux machine. */
|
||||||
struct utsname utsbuf;
|
struct utsname utsbuf;
|
||||||
uname(&utsbuf);
|
uname(&utsbuf);
|
||||||
if (drv->platform == "i686-linux" &&
|
if ((drv->platform == "i686-linux"
|
||||||
(settings.thisSystem == "x86_64-linux" ||
|
&& (settings.thisSystem == "x86_64-linux"
|
||||||
(!strcmp(utsbuf.sysname, "Linux") && !strcmp(utsbuf.machine, "x86_64")))) {
|
|| (!strcmp(utsbuf.sysname, "Linux") && !strcmp(utsbuf.machine, "x86_64"))))
|
||||||
|
|| drv->platform == "armv7l-linux"
|
||||||
|
|| drv->platform == "armv6l-linux")
|
||||||
|
{
|
||||||
if (personality(PER_LINUX32) == -1)
|
if (personality(PER_LINUX32) == -1)
|
||||||
throw SysError("cannot set i686-linux personality");
|
throw SysError("cannot set 32-bit 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
|
/* Impersonate a Linux 2.6 machine to get some determinism in
|
||||||
|
|
Loading…
Reference in a new issue