From 0fc0959c413b6cb1900f59fee403502f7b8ae2e8 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 21 Feb 2023 22:31:57 +0800 Subject: remove rootdir --- xmake/plugins/check/xmake.lua | 2 +- xmake/rules/utils/check_targets/checker.lua | 2 +- 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 {} -- cgit v1.3.1