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