diff options
| author | ruki <[email protected]> | 2015-06-02 16:58:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-02 16:58:26 +0800 |
| commit | ebebee003da8aa7092a69d0efef7f69a7635d59b (patch) | |
| tree | 9120c277bea75725e1fb48a4f7f74c9f594aff1b /xmake/scripts/platform | |
| parent | f639faef588a95b28ec02c781dee2a581f7a7992 (diff) | |
improve to make project configs
Diffstat (limited to 'xmake/scripts/platform')
| -rw-r--r-- | xmake/scripts/platform/windows/_windows.lua | 12 |
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 |
