qt: add conflict for old gcc (#16904)

Co-authored-by: Sinan81 <Sinan81@github>
This commit is contained in:
Sinan 2020-06-02 01:51:35 -07:00 committed by GitHub
parent 6035b32748
commit 7f2db5c5b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,10 @@ class Qt(Package):
depends_on("double-conversion", when='@5.7:') depends_on("double-conversion", when='@5.7:')
depends_on("pcre2+multibyte", when='@5.9:') depends_on("pcre2+multibyte", when='@5.9:')
# gcc@4 is not supported as of Qt@5.14
# https://doc.qt.io/qt-5.14/supported-platforms.html
conflicts('%gcc@:4.99', when='@5.14:')
# Non-macOS dependencies and special macOS constraints # Non-macOS dependencies and special macOS constraints
if MACOS_VERSION is None: if MACOS_VERSION is None:
depends_on("fontconfig", when='freetype=spack') depends_on("fontconfig", when='freetype=spack')