From 1288ac7075a8589df677880d1befe3ebc83856a1 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 12 Aug 2024 22:37:53 +0800 Subject: [PATCH] Update compile_commands.lua --- xmake/plugins/project/clang/compile_commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua index 45ef1c4fea6..fa32ea7ca39 100644 --- a/xmake/plugins/project/clang/compile_commands.lua +++ b/xmake/plugins/project/clang/compile_commands.lua @@ -296,7 +296,7 @@ function _add_targets(jsonfile) end end -- https://github.com/xmake-io/xmake/issues/4750 - for _, test in pairs(test_action.get_tests_table()) do + for _, test in pairs(test_action.get_tests()) do local target = test.target if not target:is_phony() then _add_target(jsonfile, target)