diff options
| -rw-r--r-- | xmake/rules/csharp/buildcmd.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/csharp/clean.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/csharp/csharp_common.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/csharp/install.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/csharp/installcmd.lua | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/xmake/rules/csharp/buildcmd.lua b/xmake/rules/csharp/buildcmd.lua index c79ae65f4..209c76027 100644 --- a/xmake/rules/csharp/buildcmd.lua +++ b/xmake/rules/csharp/buildcmd.lua @@ -18,7 +18,7 @@ -- @file buildcmd.lua -- -local csharp_common = import("csharp_common", {anonymous = true}) +import("csharp_common") function main(target, batchcmds, opt) local csprojfile = assert(csharp_common.find_csproj(target), "target(%s): missing csharp .csproj file!", target:name()) diff --git a/xmake/rules/csharp/clean.lua b/xmake/rules/csharp/clean.lua index 6de720709..863e97b50 100644 --- a/xmake/rules/csharp/clean.lua +++ b/xmake/rules/csharp/clean.lua @@ -19,7 +19,7 @@ -- import("target.action.clean", {alias = "_do_clean_target"}) -local csharp_common = import("csharp_common", {anonymous = true}) +import("csharp_common") function main(target, opt) _do_clean_target(target) diff --git a/xmake/rules/csharp/csharp_common.lua b/xmake/rules/csharp/csharp_common.lua index e6f2bc7c3..ddfa241bc 100644 --- a/xmake/rules/csharp/csharp_common.lua +++ b/xmake/rules/csharp/csharp_common.lua @@ -18,7 +18,7 @@ -- @file csharp_common.lua -- -local function _map_rid_arch(arch) +function _map_rid_arch(arch) arch = (arch or ""):lower() if arch == "x64" or arch == "x86_64" or arch == "amd64" then return "x64" diff --git a/xmake/rules/csharp/install.lua b/xmake/rules/csharp/install.lua index 97b3b1ee8..05d48e2c5 100644 --- a/xmake/rules/csharp/install.lua +++ b/xmake/rules/csharp/install.lua @@ -18,7 +18,7 @@ -- @file install.lua -- -local csharp_common = import("csharp_common", {anonymous = true}) +import("csharp_common") function main(target, opt) local function _q(arg) diff --git a/xmake/rules/csharp/installcmd.lua b/xmake/rules/csharp/installcmd.lua index 42733bfb0..c483eb432 100644 --- a/xmake/rules/csharp/installcmd.lua +++ b/xmake/rules/csharp/installcmd.lua @@ -18,7 +18,7 @@ -- @file installcmd.lua -- -local csharp_common = import("csharp_common", {anonymous = true}) +import("csharp_common") function main(target, batchcmds, opt) local csprojfile = assert(csharp_common.find_csproj(target), "target(%s): missing csharp .csproj file!", target:name()) |
