clangd broke because it can't look through symlinks. compile_commands manipulation does not fix it, clangd configuration does not fix it, a vfs overlay does not fix it, and while a combination of those can fix it with a bind mount in place that's just too cursed to even consider clangd bug: https://github.com/llvm/llvm-project/issues/116877 Change-Id: I8e3e8489548eb3a7aa65ac9d12a5ec8abf814aec
36 lines
849 B
Meson
36 lines
849 B
Meson
legacy_include_directories = include_directories('.')
|
|
|
|
legacy_sources = files(
|
|
# `build-remote` is not really legacy (it powers all remote builds), but it's
|
|
# not a `nix3` command.
|
|
'build-remote.cc',
|
|
'dotgraph.cc',
|
|
'graphml.cc',
|
|
'nix-build.cc',
|
|
'nix-channel.cc',
|
|
'nix-collect-garbage.cc',
|
|
'nix-copy-closure.cc',
|
|
'nix-env.cc',
|
|
'nix-env.hh',
|
|
'nix-instantiate.cc',
|
|
'nix-store.cc',
|
|
'user-env.cc',
|
|
)
|
|
|
|
legacy_headers = files(
|
|
'build-remote.hh',
|
|
'nix-build.hh',
|
|
'nix-channel.hh',
|
|
'nix-collect-garbage.hh',
|
|
'nix-copy-closure.hh',
|
|
'nix-instantiate.hh',
|
|
'nix-store.hh',
|
|
)
|
|
|
|
legacy_generated_headers = [
|
|
gen_header.process('buildenv.nix', preserve_path_from: meson.current_source_dir()),
|
|
gen_header.process('unpack-channel.nix', preserve_path_from: meson.current_source_dir()),
|
|
]
|
|
|
|
fs.copyfile('unpack-channel.nix')
|