aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-06-19 00:17:45 -0700
committerFuwn <[email protected]>2022-06-19 00:17:45 -0700
commit7811d4288d91f0c15d834982ffdc6adfbeecc4a0 (patch)
tree03651001e07110c4a0c9ea94c036355aeb542ecc /meson.build
parentci(check): cache llvm (diff)
downloadtatl-7811d4288d91f0c15d834982ffdc6adfbeecc4a0.tar.xz
tatl-7811d4288d91f0c15d834982ffdc6adfbeecc4a0.zip
chore(meson): optionalize clang-tidy
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