summaryrefslogtreecommitdiffstats
path: root/autowaf.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-18 10:49:12 +0100
committerDavid Robillard <d@drobilla.net>2017-12-18 11:06:02 +0100
commitc509caadba7747e4dc724e0bd3cc87c1e8206a68 (patch)
treeec91d53d9b3cb1156eb9e7dff63b117f86bab9c3 /autowaf.py
parent31e37d4a37fd45c4aaa29aec105f829fab6e4256 (diff)
downloadautowaf-c509caadba7747e4dc724e0bd3cc87c1e8206a68.tar.gz
autowaf-c509caadba7747e4dc724e0bd3cc87c1e8206a68.tar.bz2
autowaf-c509caadba7747e4dc724e0bd3cc87c1e8206a68.zip
Detect versioned llvm-cov
Diffstat (limited to 'autowaf.py')
-rw-r--r--autowaf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/autowaf.py b/autowaf.py
index 0240727..032e619 100644
--- a/autowaf.py
+++ b/autowaf.py
@@ -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: