summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/windows/prober.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/platform/windows/prober.lua')
-rw-r--r--xmake/scripts/platform/windows/prober.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/platform/windows/prober.lua b/xmake/scripts/platform/windows/prober.lua
index 764669a27..f4aacf9d2 100644
--- a/xmake/scripts/platform/windows/prober.lua
+++ b/xmake/scripts/platform/windows/prober.lua
@@ -236,8 +236,8 @@ function prober._probe_toolchains(configs)
if not prober._probe_toolpath(configs, "cc", "cl.exe", "the c compiler") then return false end
if not prober._probe_toolpath(configs, "cxx", "cl.exe", "the c++ compiler") then return false end
if not prober._probe_toolpath(configs, "ld", "link.exe", "the linker") then return false end
- if not prober._probe_toolpath(configs, "ar", "link.exe", "the static library linker") then return false end
- if not prober._probe_toolpath(configs, "sh", "link.exe", "the shared library linker") then return false end
+ if not prober._probe_toolpath(configs, "ar", "link.exe -lib", "the static library linker") then return false end
+ if not prober._probe_toolpath(configs, "sh", "link.exe -dll", "the shared library linker") then return false end
if not prober._probe_toolpath(configs, "make", "nmake.exe", "the make") then return false end
-- leave envirnoment