summaryrefslogtreecommitdiff
path: root/xmake/modules/private/tools/rust/check_target.lua
diff options
context:
space:
mode:
authorw568w <[email protected]>2023-08-09 11:26:49 +0800
committerw568w <[email protected]>2023-08-09 11:32:04 +0800
commitb618dfe97c7bef82a3a317117fc364d0366b2137 (patch)
treed8283bd4d4ee6d52b40807b929d8e8095d8296ec /xmake/modules/private/tools/rust/check_target.lua
parentda732687d5747e2140668ab0016a74315d1b40ae (diff)
minor style updates
Diffstat (limited to 'xmake/modules/private/tools/rust/check_target.lua')
-rw-r--r--xmake/modules/private/tools/rust/check_target.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/modules/private/tools/rust/check_target.lua b/xmake/modules/private/tools/rust/check_target.lua
index e08e830da..fdc06458b 100644
--- a/xmake/modules/private/tools/rust/check_target.lua
+++ b/xmake/modules/private/tools/rust/check_target.lua
@@ -40,7 +40,6 @@ end
--
-- @return true if arch != nil and the target is supported by rustc, otherwise false
function main(arch, precise)
- print("arch: " .. arch)
if not arch then
return false
@@ -52,7 +51,7 @@ function main(arch, precise)
if #archs >= 2 then
result = true
else
- utils.warning("the arch \"%s\" is NOT a valid target triple, will be IGNORED and may cause compilation errors, please check it again", arch)
+ wprint("the arch \"%s\" is NOT a valid target triple, will be IGNORED and may cause compilation errors, please check it again", arch)
end
-- 2: check by rustc
@@ -69,7 +68,7 @@ function main(arch, precise)
end
end
if not result then
- utils.warning("the arch \"%s\" is NOT supported by rustc, will be IGNORED and may cause compilation errors, please check it again", arch)
+ wprint("the arch \"%s\" is NOT supported by rustc, will be IGNORED and may cause compilation errors, please check it again", arch)
end
end