diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2021-06-22 17:29:04 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-07-07 20:08:12 +0200 |
commit | 0cd8897189b3d68d500ffcd3f32e0f855ac04337 (patch) | |
tree | 68fcef903ab5747fee22ad63d1fa0343dd3c7f39 | |
parent | c78e6cac80ecb55b51d30346accc232e28555d56 (diff) | |
download | meson-0cd8897189b3d68d500ffcd3f32e0f855ac04337.zip meson-0cd8897189b3d68d500ffcd3f32e0f855ac04337.tar.gz meson-0cd8897189b3d68d500ffcd3f32e0f855ac04337.tar.bz2 |
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.)
-rw-r--r-- | test cases/frameworks/15 llvm/meson.build | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test cases/frameworks/15 llvm/meson.build b/test cases/frameworks/15 llvm/meson.build index bae83c5..3855fae 100644 --- a/test cases/frameworks/15 llvm/meson.build +++ b/test cases/frameworks/15 llvm/meson.build @@ -34,8 +34,12 @@ llvm_dep = dependency( static : static, method : method, ) -if llvm_dep.found() - executable( + +if not llvm_dep.found() + error('MESON_SKIP_TEST required llvm modules not found.') +endif + +executable( 'sum', 'sum.c', dependencies : [ @@ -45,4 +49,3 @@ if llvm_dep.found() meson.get_compiler('c').find_library('dl', required : false), ] ) -endif |