diff options
author | David Robillard <d@drobilla.net> | 2017-12-18 10:49:12 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-18 11:06:02 +0100 |
commit | c509caadba7747e4dc724e0bd3cc87c1e8206a68 (patch) | |
tree | ec91d53d9b3cb1156eb9e7dff63b117f86bab9c3 /autowaf.py | |
parent | 31e37d4a37fd45c4aaa29aec105f829fab6e4256 (diff) | |
download | autowaf-c509caadba7747e4dc724e0bd3cc87c1e8206a68.tar.gz autowaf-c509caadba7747e4dc724e0bd3cc87c1e8206a68.tar.bz2 autowaf-c509caadba7747e4dc724e0bd3cc87c1e8206a68.zip |
Detect versioned llvm-cov
Diffstat (limited to 'autowaf.py')
-rw-r--r-- | autowaf.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -264,7 +264,9 @@ int main() { return 0; }''', if not Options.options.no_coverage: # Set up unit test code coverage if conf.is_defined('CLANG'): - conf.find_program('llvm-cov', var='LLVM_COV', mandatory=False) + for cov in [conf.env.CC[0].replace('clang', 'llvm-cov'), 'llvm-cov']: + if conf.find_program(cov, var='LLVM_COV', mandatory=False): + break else: conf.check_cc(lib='gcov', define_name='HAVE_GCOV', mandatory=False) except: |