summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-21 22:31:57 +0800
committerruki <[email protected]>2023-02-21 22:31:57 +0800
commit0fc0959c413b6cb1900f59fee403502f7b8ae2e8 (patch)
treeeb163cff930258f3b562b940512f0cd028838658
parent9b095fdc709852158c6414a79915384fead9b313 (diff)
remove rootdir
-rw-r--r--xmake/plugins/check/xmake.lua2
-rw-r--r--xmake/rules/utils/check_targets/checker.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/check/xmake.lua b/xmake/plugins/check/xmake.lua
index c04f2ffff..08b4cf87d 100644
--- a/xmake/plugins/check/xmake.lua
+++ b/xmake/plugins/check/xmake.lua
@@ -35,7 +35,7 @@ task("check")
"",
"The supported checkers list:",
values = function (complete, opt)
- return import("private.check.checker", {rootdir = os.programdir()}).complete(complete, opt)
+ return import("private.check.checker").complete(complete, opt)
end},
{nil, "arguments", "vs", nil, "Set the checker arguments.",
"e.g.",
diff --git a/xmake/rules/utils/check_targets/checker.lua b/xmake/rules/utils/check_targets/checker.lua
index c6cbd4bf1..f752f9149 100644
--- a/xmake/rules/utils/check_targets/checker.lua
+++ b/xmake/rules/utils/check_targets/checker.lua
@@ -18,7 +18,7 @@
-- @file check_targets.lua
--
-import("private.check.checker", {rootdir = os.programdir()})
+import("private.check.checker")
function _show(str, opt)
_g.showed = _g.showed or {}