From a176c4ef57ceecfb215d7fc9fd4489ff0c596a0b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 19 Jun 2022 00:17:45 +0000 Subject: chore(meson): optionalize clang-tidy --- meson.build | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 91356b4..029cde4 100644 --- a/meson.build +++ b/meson.build @@ -57,14 +57,16 @@ run_target('format', project_header_files, ]) -run_target('tidy', - command : [ - 'run-clang-tidy', - # '-fix', - '-j', - '8', - 'files', - '.', # '^((?!(fuwn)).)*$', - '-format', - '-p=' + meson.build_root() - ]) +if get_option('tidy') + run_target('tidy', + command : [ + 'run-clang-tidy', + # '-fix', + '-j', + '8', + 'files', + '.', # '^((?!(fuwn)).)*$', + '-format', + '-p=' + meson.build_root() + ]) +endif -- cgit v1.2.3