diff options
| author | Fuwn <[email protected]> | 2022-06-19 00:17:45 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-06-19 00:17:45 -0700 |
| commit | 7811d4288d91f0c15d834982ffdc6adfbeecc4a0 (patch) | |
| tree | 03651001e07110c4a0c9ea94c036355aeb542ecc /meson.build | |
| parent | ci(check): cache llvm (diff) | |
| download | tatl-7811d4288d91f0c15d834982ffdc6adfbeecc4a0.tar.xz tatl-7811d4288d91f0c15d834982ffdc6adfbeecc4a0.zip | |
chore(meson): optionalize clang-tidy
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 24 |
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 |