summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2026-04-07 23:39:20 +0800
committerruki <[email protected]>2026-04-07 23:39:20 +0800
commit59c749bda81f4c0a99d41ee31adfbf931cd578f2 (patch)
treed08a14f5acdab2bdc711596c9f857098337b716b /xmake/modules/core/tools
parent4a13e671f0ba99feca8daf4a1706e9bcb4ccfa67 (diff)
add utils.checker
Diffstat (limited to 'xmake/modules/core/tools')
-rw-r--r--xmake/modules/core/tools/cl.lua4
-rw-r--r--xmake/modules/core/tools/gcc.lua3
2 files changed, 4 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 02a562e06..8928263d8 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -22,7 +22,6 @@
import("core.base.option")
import("core.base.global")
import("core.base.hashset")
-import("core.cache.memcache")
import("core.project.project")
import("core.project.policy")
import("core.language.language")
@@ -30,6 +29,7 @@ import("private.utils.toolchain", {alias = "toolchain_utils"})
import("private.tools.vstool")
import("core.tools.cl.parse_include")
import("private.cache.build_cache")
+import("utils.checker")
import("private.service.distcc_build.client", {alias = "distcc_build_client"})
import("utils.progress")
@@ -97,7 +97,7 @@ end
-- is syntax check enabled?
function _is_syntax_check()
- return memcache.get("syntax_check", "enabled") or false
+ return checker.is_running("syntax")
end
-- make the symbol flags
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index d390d8884..43d51a1e1 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -31,6 +31,7 @@ import("core.project.project")
import("core.language.language")
import("utils.progress")
import("private.cache.build_cache")
+import("utils.checker")
import("private.service.distcc_build.client", {alias = "distcc_build_client"})
import("rules.c++.modules.support", {rootdir = os.programdir()})
@@ -76,7 +77,7 @@ end
-- is syntax check enabled?
function _is_syntax_check()
- return memcache.get("syntax_check", "enabled") or false
+ return checker.is_running("syntax")
end
-- get `-MMD -MF depfile.d` flags, some old gcc does not support it at same time