tests: remove unnecessary non-meson syntax from meson.build
We don't use parentheses for the if function, because it's not a function.
This commit is contained in:
parent
e2e6fd2e61
commit
7126ca6e27
|
@ -13,7 +13,7 @@ modules_to_find = [
|
|||
'nativecodegen', 'amdgpu', 'engine'
|
||||
]
|
||||
|
||||
if(method == 'combination')
|
||||
if method == 'combination'
|
||||
if not d.version().version_compare(static ? '>0.1' : '>=7.0')
|
||||
error('MESON_SKIP_TEST: llvm version is too low')
|
||||
endif
|
||||
|
@ -51,7 +51,7 @@ if(method == 'combination')
|
|||
assert(cm_version_major == ct_version_major, 'config-tool and cmake returns different major versions')
|
||||
assert(cm_version_minor == ct_version_minor, 'config-tool and cmake returns different minor versions')
|
||||
else
|
||||
if(not static and method == 'cmake')
|
||||
if not static and method == 'cmake'
|
||||
d = dependency('llvm', version : '>=7.0', required : false, static : static)
|
||||
if not d.found()
|
||||
error('MESON_SKIP_TEST llvm version is too low for cmake dynamic link.')
|
||||
|
|
Loading…
Reference in New Issue