summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/platforms/windows/config.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/platforms/windows/config.lua b/xmake/platforms/windows/config.lua
index be67f7464..e3faddde3 100644
--- a/xmake/platforms/windows/config.lua
+++ b/xmake/platforms/windows/config.lua
@@ -128,7 +128,11 @@ function main(platform, name)
check_arch(config)
-- check vstudio
- check_vstudio(config)
+ local cc = path.filename(config.get("cc") or os.getenv("CC") or "cl"):lower()
+ local cxx = path.filename(config.get("cxx") or os.getenv("CXX") or "cl"):lower()
+ if cc == "cl" or cc == "cl.exe" or cxx == "cl" or cxx == "cl.exe" then
+ check_vstudio(config)
+ end
end
end