Skip to content

Commit

Permalink
[clangd] Fix builds after 4ddae8b
Browse files Browse the repository at this point in the history
(cherry picked from commit 9ffef0f)
  • Loading branch information
kadircet authored and tstellar committed May 17, 2023
1 parent 21f3dfb commit ae42196
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 5 additions & 8 deletions clang-tools-extra/clangd/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
)

# Copy an empty compile_commands.json to override the compile_commands.json
# in the top level build directory. Or if a clangd test involves creating a
# temporary source file in the build directory and run clangd to check it,
# it can pick up unrecognizable command options when LLVM is built with
# another compiler or a different version of Clang.
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json
${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json
# Copy an empty compile_flags.txt to make sure tests don't pick up arbitrary
# commands from parents.
file(
TOUCH
${CMAKE_CURRENT_BINARY_DIR}/compile_flags.txt
)

add_lit_testsuite(check-clangd "Running the Clangd regression tests"
Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clangd/test/compile_commands.json

This file was deleted.

0 comments on commit ae42196

Please sign in to comment.