mesa: check correct LLVM variant for dylib (#27862)

This commit is contained in:
kwryankrattiger
2021-12-15 09:37:35 -06:00
committed by GitHub
parent 9c1be2a510
commit 116e1bb6cb
2 changed files with 2 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ def meson_args(self):
native_config.write("llvm-config = '{0}'\n".format(llvm_config))
args.append('-Dllvm=enabled')
args.append(opt_enable(
'+link_dylib' in spec['llvm'], 'shared-llvm'))
'+llvm_dylib' in spec['llvm'], 'shared-llvm'))
else:
args.append('-Dllvm=disabled')

View File

@@ -136,7 +136,7 @@ def configure_args(self):
if '+llvm' in spec:
args.append('--enable-llvm')
args.append('--with-llvm-prefix=%s' % spec['llvm'].prefix)
if '+link_dylib' in spec['llvm']:
if '+llvm_dylib' in spec['llvm']:
args.append('--enable-llvm-shared-libs')
else:
args.append('--disable-llvm-shared-libs')