Add version check when building intel-tbb with clang (#13893)

* Add version check when building with clang

* Update for flake8 formatting
This commit is contained in:
Tim Haines 2019-11-26 23:15:17 -06:00 committed by Adam J. Stewart
parent 07325f5fd0
commit c80792fc06

View File

@ -53,6 +53,16 @@ class IntelTbb(Package):
provides('tbb') provides('tbb')
# Clang builds incorrectly determine GCC version which in turn incorrectly
# causes a mismatch in C++ features resulting in a link error. This also
# means that clang builds require a gcc compiler to work correctly (this
# has always been the case).
#
# See https://github.com/intel/tbb/pull/147 for details.
#
conflicts('%clang', when='@:2019.7',
msg='2019.7 or later required for clang')
conflicts('%gcc@6.1:', when='@:4.4.3', conflicts('%gcc@6.1:', when='@:4.4.3',
msg='4.4.4 or later required for GCC >= 6.1.') msg='4.4.4 or later required for GCC >= 6.1.')