ci: Don't search for llvm modules with LLVM 16.0.x

See: https://github.com/mesonbuild/meson/issues/11642
pull/11709/head
Nirbheek Chauhan 2 years ago committed by Eli Schwartz
parent 09ec4f6e22
commit 9cc5009a44
  1. 56
      test cases/frameworks/15 llvm/meson.build

@ -16,14 +16,27 @@ if(method == 'combination')
static : static,
method : 'config-tool',
)
llvm_cm_dep = dependency(
'llvm',
modules : ['bitwriter', 'asmprinter', 'executionengine', 'target',
'mcjit', 'nativecodegen', 'amdgpu', 'engine'],
required : false,
static : static,
method : 'cmake',
)
# Bump the version along till the LLVM bug is fixed
if static and d.version().startswith('16.0') and d.version()[5].to_int() <= 2
message('Skipping modules with cmake, see https://github.com/mesonbuild/meson/issues/11642')
llvm_cm_dep = dependency(
'llvm',
required : false,
static : static,
method : 'cmake',
)
else
llvm_cm_dep = dependency(
'llvm',
modules : ['bitwriter', 'asmprinter', 'executionengine', 'target',
'mcjit', 'nativecodegen', 'amdgpu', 'engine'],
required : false,
static : static,
method : 'cmake',
)
endif
assert(llvm_ct_dep.found() == llvm_cm_dep.found(), 'config-tool and cmake results differ')
cm_version_major = llvm_cm_dep.version().split('.')[0].to_int()
cm_version_minor = llvm_cm_dep.version().split('.')[1].to_int()
@ -67,14 +80,25 @@ else
dep_tinfo = cpp.find_library('tinfo', required: false)
endif
llvm_dep = dependency(
'llvm',
modules : ['bitwriter', 'asmprinter', 'executionengine', 'target',
'mcjit', 'nativecodegen', 'amdgpu'],
required : false,
static : static,
method : method,
)
# Bump the version along till the LLVM bug is fixed
if static and method == 'cmake' and d.version().startswith('16.0') and d.version()[5].to_int() <= 2
message('Skipping modules with cmake, see https://github.com/mesonbuild/meson/issues/11642')
llvm_dep = dependency(
'llvm',
required : false,
static : static,
method : method,
)
else
llvm_dep = dependency(
'llvm',
modules : ['bitwriter', 'asmprinter', 'executionengine', 'target',
'mcjit', 'nativecodegen', 'amdgpu'],
required : false,
static : static,
method : method,
)
endif
if not llvm_dep.found()
error('MESON_SKIP_TEST required llvm modules not found.')

Loading…
Cancel
Save