summaryrefslogtreecommitdiff
path: root/xmake/core
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-03 00:52:16 +0800
committerruki <[email protected]>2025-12-03 00:52:16 +0800
commitd66186fac83f009715e4d3307b47e361954fa708 (patch)
treedc5191d6d7b8d93ca70394430e78b2859d7c4cea /xmake/core
parent3aca93627b3cada55db8d0215d6ff87ca418ceab (diff)
add xmake check syntax
Diffstat (limited to 'xmake/core')
-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..ba005f16e 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -110,6 +110,8 @@ function policy.policies()
["build.c++.msvc.runtime"] = {description = "Set the default vs runtime.", type = "string", values = {"MT", "MD"}},
-- Enable C++ Dynamic Debugging for MSVC (requires MSVC toolset 14.44+, x64 only, incompatible with LTCG/PGO/OPT-ICF).
["build.c++.dynamic_debugging"] = {description = "Enable C++ Dynamic Debugging for MSVC (requires MSVC toolset 14.44+, x64 only, incompatible with LTCG/PGO/OPT-ICF).", type = "boolean"},
+ -- Enable syntax-only check for C/C++ building.
+ ["build.c++.syntax_only"] = {description = "Enable syntax-only check for C/C++ building.", type = "boolean"},
-- Enable cuda device link
["build.cuda.devlink"] = {description = "Enable Cuda devlink.", type = "boolean"},
-- Enable linker output, e.g. show -Wl,--print-memory-usage output for gcc/g++