summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/mbedtls/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mbedtls/package.py b/var/spack/repos/builtin/packages/mbedtls/package.py
index 3cc7d7a4e8..9fcded1cd3 100644
--- a/var/spack/repos/builtin/packages/mbedtls/package.py
+++ b/var/spack/repos/builtin/packages/mbedtls/package.py
@@ -46,6 +46,10 @@ class Mbedtls(MakefilePackage):
depends_on('python@3:', type='test', when='@3:')
depends_on('python@:2', type='test', when='@:2')
+ # See https://github.com/Mbed-TLS/mbedtls/issues/4917
+ # Only 2.16.12, 2.28.0 and 3.1.0 support clang 12.
+ conflicts('%clang@12:', when='@:2.16.11,2.17:2.27,2.29:3.0')
+
# See https://github.com/ARMmbed/mbedtls/pull/5126
# and the 2.x backport: https://github.com/ARMmbed/mbedtls/pull/5133
patch('fix-dt-needed-shared-libs.patch', when='@2.7:2.27,3.0.0')