summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-05-25 14:41:49 +0200
committerGitHub <noreply@github.com>2022-05-25 14:41:49 +0200
commit3620204db6014c079ae7f554e84d4eab75b75e2e (patch)
tree5a6cc204a57529012a146dc6dfe5ac6d078f38c4
parent13984a4e8d2c803f59ebcbf2c8ce171b99d18337 (diff)
downloadspack-3620204db6014c079ae7f554e84d4eab75b75e2e.tar.gz
spack-3620204db6014c079ae7f554e84d4eab75b75e2e.tar.bz2
spack-3620204db6014c079ae7f554e84d4eab75b75e2e.tar.xz
spack-3620204db6014c079ae7f554e84d4eab75b75e2e.zip
mbedtls: add conflicts over inline asm trouble with clang@12: (#30801)
-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')