summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Stam <33101855+EthanS94@users.noreply.github.com>2021-01-05 13:04:57 -0700
committerGitHub <noreply@github.com>2021-01-05 13:04:57 -0700
commit18110346c809e43e4a5438b6ff64778cb1683abc (patch)
tree9d5847bed61f23edb0a000915312f74648543283
parent32c724108917e7567551abaf718992026185b2f9 (diff)
downloadspack-18110346c809e43e4a5438b6ff64778cb1683abc.tar.gz
spack-18110346c809e43e4a5438b6ff64778cb1683abc.tar.bz2
spack-18110346c809e43e4a5438b6ff64778cb1683abc.tar.xz
spack-18110346c809e43e4a5438b6ff64778cb1683abc.zip
Mesa: use auto when llvm is built shared (#20683)
-rw-r--r--var/spack/repos/builtin/packages/mesa/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py
index b07cfd59fd..7c8a4bfaa6 100644
--- a/var/spack/repos/builtin/packages/mesa/package.py
+++ b/var/spack/repos/builtin/packages/mesa/package.py
@@ -84,6 +84,8 @@ class Mesa(MesonPackage):
# OpenGL ES requires OpenGL
conflicts('~opengl +opengles')
+ # 'auto' needed when shared llvm is built
+ @when('^llvm~shared_libs')
def patch(self):
filter_file(
r"_llvm_method = 'auto'",