summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua3
1 files changed, 2 insertions, 1 deletions
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