File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 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(
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
4138add_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