summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw568w <[email protected]>2023-08-09 11:16:15 +0800
committerw568w <[email protected]>2023-08-09 11:16:15 +0800
commit12f6131319ee6256e33cc9d50110e791f43552ed (patch)
tree9a85b03905b0b7d13c073517ca79a6ff0810d20a
parent75e74ab6f8c89bc4d82cd23b05416141ea6d28c4 (diff)
update warning messages in `check_target()`
-rw-r--r--xmake/modules/private/tools/rust/check_target.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/private/tools/rust/check_target.lua b/xmake/modules/private/tools/rust/check_target.lua
index 1c213306e..75d68ccf1 100644
--- a/xmake/modules/private/tools/rust/check_target.lua
+++ b/xmake/modules/private/tools/rust/check_target.lua
@@ -51,6 +51,8 @@ function main(arch, precise)
local archs = arch:split("%-")
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)
end
-- 2: check by rustc