summaryrefslogtreecommitdiff
path: root/xmake/core/project
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-30 20:42:57 +0300
committerSaikari <[email protected]>2026-01-30 20:42:57 +0300
commitb006af493bff65fcffd198db70ec2c8046f6575e (patch)
tree6e40e74d2a966cc40160c713f3947f5edb5d2620 /xmake/core/project
parent51a68ee33918b95811420beb6a56673a83abe6cc (diff)
enhance compile_commands support and add test cases
Diffstat (limited to 'xmake/core/project')
-rw-r--r--xmake/core/project/policy.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index 1cecfd01a..51631e408 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -98,6 +98,8 @@ function policy.policies()
-- Force C++ modules fallback dependency scanner for msvc
["build.c++.modules.msvc.fallbackscanner"] = {description = "Force msvc fallback module dependency scanner.", default = false, type = "boolean"},
["build.c++.msvc.fallbackscanner"] = {description = "Force msvc fallback module dependency scanner. (deprecated)", default = false, type = "boolean"},
+ -- Enable compile_commands
+ ["build.compile_commands"] = {description = "Enable compile_commands.", default = true, type = "boolean"},
-- Force C++ modules fallback dependency scanner for gcc
["build.c++.modules.gcc.fallbackscanner"] = {description = "Force gcc fallback module dependency scanner.", default = false, type = "boolean"},
["build.c++.gcc.fallbackscanner"] = {description = "Force gcc fallback module dependency scanner. (deprecated)", default = false, type = "boolean"},