aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build24
1 files changed, 13 insertions, 11 deletions
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