From ebebee003da8aa7092a69d0efef7f69a7635d59b Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 2 Jun 2015 16:58:26 +0800 Subject: improve to make project configs --- xmake/scripts/platform/windows/_windows.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'xmake/scripts/platform/windows') 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 -- cgit v1.3.1