summaryrefslogtreecommitdiff
path: root/xmake/modules/private/platform
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-09 23:16:49 +0800
committerruki <[email protected]>2020-02-09 23:16:49 +0800
commit3d9793b409408ff451c3cce49043bb827d715b3b (patch)
treed24d767004aa4137746e105d754b0fc11e10d5b0 /xmake/modules/private/platform
parent204d204c230eccfa459752c71ca3651522ecefcd (diff)
fix check tip colors
Diffstat (limited to 'xmake/modules/private/platform')
-rw-r--r--xmake/modules/private/platform/check_arch.lua2
-rw-r--r--xmake/modules/private/platform/check_vstudio.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/platform/check_arch.lua b/xmake/modules/private/platform/check_arch.lua
index 34983a422..4e67f8ae9 100644
--- a/xmake/modules/private/platform/check_arch.lua
+++ b/xmake/modules/private/platform/check_arch.lua
@@ -32,7 +32,7 @@ function main(config, default)
config.set("arch", default or os.arch())
-- trace
- cprint("checking for the architecture ... ${green}%s", config.get("arch"))
+ cprint("checking for the architecture ... ${color.success}%s", config.get("arch"))
end
end
diff --git a/xmake/modules/private/platform/check_vstudio.lua b/xmake/modules/private/platform/check_vstudio.lua
index 65fde8db1..6f4e8bab8 100644
--- a/xmake/modules/private/platform/check_vstudio.lua
+++ b/xmake/modules/private/platform/check_vstudio.lua
@@ -87,10 +87,10 @@ function main(config)
config.set("vs", vs, {readonly = true, force = true})
-- trace
- print("checking for the Microsoft Visual Studio (%s) version ... %s", config.get("arch"), vs)
+ cprint("checking for the Microsoft Visual Studio (%s) version ... ${color.success}%s", config.get("arch"), vs)
else
-- failed
- print("checking for the Microsoft Visual Studio (%s) version ... no", config.get("arch"))
+ cprint("checking for the Microsoft Visual Studio (%s) version ... ${color.nothing}${text.nothing}", config.get("arch"))
print("please run:")
print(" - xmake config --vs=xxx [--vs_toolset=xxx]")
print("or - xmake global --vs=xxx")