Skip to content

Commit ae42196

Browse files
kadircettstellar
authored andcommitted
[clangd] Fix builds after 4ddae8b
(cherry picked from commit 9ffef0f)
1 parent 21f3dfb commit ae42196

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

clang-tools-extra/clangd/test/CMakeLists.txt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@ configure_lit_site_cfg(
2828
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
2929
)
3030

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

4138
add_lit_testsuite(check-clangd "Running the Clangd regression tests"

clang-tools-extra/clangd/test/compile_commands.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)