diff options
| author | ruki <[email protected]> | 2020-02-09 23:41:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-09 23:41:12 +0800 |
| commit | 96757ac7da97b7205b91ca396eec1408b4e16a59 (patch) | |
| tree | ad94618083ed7fbbe142cccc6ac5f1e2995a53ef | |
| parent | 3d9793b409408ff451c3cce49043bb827d715b3b (diff) | |
speedup non-MSVC builds
| -rw-r--r-- | xmake/platforms/windows/config.lua | 6 |
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 |
