qemu: do not force x86_64 cpu on darwin

This change produces the following warning:

```
... configure: line 619: sysctl: command not found
```

It's benign and sysctl is only useful on MacOS X Leopard:

* https://github.com/qemu/qemu/blob/v5.2.0/configure#L615-L621

Leopard is 13 years old and is not supported by Nix.

The sysctl check is removed in qemu master branch already.

Plus aarch64-darwin is coming in #105026, so there's no reason to force x86_64.
This commit is contained in:
Ivan Babrou 2021-02-08 13:20:57 -08:00
parent d9c6f13e13
commit bb475b01d2

View file

@ -118,8 +118,6 @@ stdenv.mkDerivation rec {
"--enable-tools"
"--enable-guest-agent"
]
# disable sysctl check on darwin.
++ optional stdenv.isDarwin "--cpu=x86_64"
++ optional numaSupport "--enable-numa"
++ optional seccompSupport "--enable-seccomp"
++ optional smartcardSupport "--enable-smartcard"