MPark.Variant: GCC 7.3.1 Conflict (#16081)

* MPark.Variant: GCC 7.3.1 Conflict

Due to an ICE in this specific patch-release of GCC, compile
errors in downstream packages should be avoided with a clean
conflict.

* Fix superfluous spaces

Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com>

* Fix typo

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Axel Huebl 2020-04-16 07:48:19 -07:00 committed by GitHub
parent 7c5fc6acea
commit 125fc2e611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,5 +19,14 @@ class MparkVariant(CMakePackage):
# Ref.: https://github.com/mpark/variant/pull/73 # Ref.: https://github.com/mpark/variant/pull/73
patch('nvcc.patch', when='@:1.4.0') patch('nvcc.patch', when='@:1.4.0')
conflicts('%gcc@:4.7') cxx11_msg = 'MPark.Variant needs a C++11-capable compiler. ' \
conflicts('%clang@:3.5') 'See https://github.com/mpark/variant#requirements'
conflicts('%gcc@:4.7', msg=cxx11_msg)
conflicts('%clang@:3.5', msg=cxx11_msg)
conflicts('%gcc@7.3.1',
msg='GCC 7.3.1 has a bug that prevents using MPark.Variant. '
'See https://github.com/mpark/variant/issues/43 and '
'https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84785 '
'Please use a different compiler version or another '
'compiler.')