forked from lix-project/lix
Rebecca Turner
9845637359
Nixpkgs Clang on macOS is 16, not 17.
nix-repl> packages.aarch64-darwin.nix-clangStdenv.stdenv.cc
«derivation /nix/store/ycych9qpim4r42hjkznl8f6zmj0jns45-clang-wrapper-16.0.6.drv»
nix-repl> packages.x86_64-linux.nix-clangStdenv.stdenv.cc
«derivation /nix/store/y48dhgidb2vs230r9ayim14q61xwcdg9-clang-wrapper-17.0.6.drv»
Change-Id: Ib267b8882f80eef4db665fb9df50ae285ea68b2b
20 lines
561 B
Meson
20 lines
561 B
Meson
project('lix-clang-tidy', ['cpp', 'c'],
|
|
version : '0.1',
|
|
default_options : ['warning_level=3', 'cpp_std=c++20']
|
|
)
|
|
|
|
llvm = dependency('Clang', version: '>= 16', modules: ['libclang'])
|
|
sources = files(
|
|
'CharPtrCast.cc',
|
|
'FixIncludes.cc',
|
|
'HasPrefixSuffix.cc',
|
|
'LixClangTidyChecks.cc',
|
|
)
|
|
|
|
lix_clang_tidy = shared_module('lix-clang-tidy', sources,
|
|
dependencies: llvm,
|
|
# overrides build_by_default, see https://github.com/mesonbuild/meson/issues/13498
|
|
install : get_option('build-by-default'),
|
|
build_by_default : get_option('build-by-default')
|
|
)
|