Skip LLVM test if required modules aren't found
If the required LLVM modules can't be found, skip the LLVM framework test, rather than succesfully doing nothing. (This optionality is a leftover from before #7379) (At the moment, OpenSuse provides dynamic-only LLVM. The cmake method still finds LLVM, when a static LLVM is requested, but fails to find any modules. This might be a bug in the cmake method of the LLVM dependency.)
This commit is contained in:
parent
c78e6cac80
commit
0cd8897189
|
@ -34,7 +34,11 @@ llvm_dep = dependency(
|
|||
static : static,
|
||||
method : method,
|
||||
)
|
||||
if llvm_dep.found()
|
||||
|
||||
if not llvm_dep.found()
|
||||
error('MESON_SKIP_TEST required llvm modules not found.')
|
||||
endif
|
||||
|
||||
executable(
|
||||
'sum',
|
||||
'sum.c',
|
||||
|
@ -45,4 +49,3 @@ if llvm_dep.found()
|
|||
meson.get_compiler('c').find_library('dl', required : false),
|
||||
]
|
||||
)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue