qemu: fail with Apple GCC 4.0 and 4.2

Those have no native support for the `__thread` specifier required by
QEMU for Thread-Local Storage (TLS).

Fixes Homebrew/homebrew#47742.
This commit is contained in:
Martin Afanasjew 2016-01-07 21:30:13 +01:00
parent 2ec628fdab
commit 170e70276e

View file

@ -24,6 +24,14 @@ class Qemu < Formula
depends_on "gtk+" => :optional
depends_on "libssh2" => :optional
fails_with :gcc_4_0 do
cause "qemu requires a compiler with support for the __thread specifier"
end
fails_with :gcc do
cause "qemu requires a compiler with support for the __thread specifier"
end
# 3.2MB working disc-image file hosted on upstream's servers for people to use to test qemu functionality.
resource "armtest" do
url "http://wiki.qemu.org/download/arm-test-0.2.tar.gz"