summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/platform')
-rw-r--r--xmake/scripts/platform/windows/_windows.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/scripts/platform/windows/_windows.lua b/xmake/scripts/platform/windows/_windows.lua
index a2feb23fa..cfe3e422d 100644
--- a/xmake/scripts/platform/windows/_windows.lua
+++ b/xmake/scripts/platform/windows/_windows.lua
@@ -44,6 +44,18 @@ function _windows.make(configs)
configs.format.object = {"", ".obj"}
configs.format.shared = {"", ".dll"}
configs.format.execute = {"", ".exe"}
+
+ -- init the compiler
+ configs.compiler = {}
+ configs.compiler.cc = config.get("cc") or "cl.exe"
+ configs.compiler.cxx = config.get("cxx") or "cl.exe"
+
+ -- init the linker
+ configs.linker = {}
+ configs.linker.binary = config.get("ld") or "link.exe"
+ configs.linker.static = config.get("ar") or "link.exe"
+ configs.linker.shared = config.get("sh") or "link.exe"
+
end
-- get the option menu for action: xmake config or global