From 12f6131319ee6256e33cc9d50110e791f43552ed Mon Sep 17 00:00:00 2001 From: w568w <1278297578@qq.com> Date: Wed, 9 Aug 2023 11:16:15 +0800 Subject: update warning messages in `check_target()` --- xmake/modules/private/tools/rust/check_target.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.3.1