File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,11 @@ configure_lit_site_cfg(
28
28
${CMAKE_CURRENT_SOURCE_DIR} /lit.cfg.py
29
29
)
30
30
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
39
36
)
40
37
41
38
add_lit_testsuite(check-clangd "Running the Clangd regression tests"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments