diff options
| author | ruki <[email protected]> | 2015-05-28 10:17:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-05-28 10:17:32 +0800 |
| commit | 6292b0f0938625902da6e3deec4877e409007708 (patch) | |
| tree | 4f6c7477e3901e0c63acd7a8cc2449d9d51344df /xmake/scripts/platform/windows | |
| parent | 3aab30fc254ae7e9bd138aff2bb263af0d447017 (diff) | |
add some compiler options for macosx
Diffstat (limited to 'xmake/scripts/platform/windows')
| -rw-r--r-- | xmake/scripts/platform/windows/_prober.lua | 4 | ||||
| -rw-r--r-- | xmake/scripts/platform/windows/_windows.lua | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/xmake/scripts/platform/windows/_prober.lua b/xmake/scripts/platform/windows/_prober.lua index cbfcc3710..13cb0b52f 100644 --- a/xmake/scripts/platform/windows/_prober.lua +++ b/xmake/scripts/platform/windows/_prober.lua @@ -36,7 +36,7 @@ function _prober._probe_arch(configs) local arch = configs.arch -- ok? - if arch and arch ~= "auto" then return true end + if arch then return true end -- init the default architecture configs.arch = xmake._ARCH @@ -45,7 +45,7 @@ function _prober._probe_arch(configs) return true end --- probe the configure and update the values with "auto" +-- probe the configure function _prober.done(configs) -- probe the architecture diff --git a/xmake/scripts/platform/windows/_windows.lua b/xmake/scripts/platform/windows/_windows.lua index 394846872..576160719 100644 --- a/xmake/scripts/platform/windows/_windows.lua +++ b/xmake/scripts/platform/windows/_windows.lua @@ -38,12 +38,12 @@ _windows._PROBER = require("platform/windows/_prober") -- make configure function _windows.make(configs) - -- init the file name formats - configs.formats = {} - configs.formats.static = {"", ".lib"} - configs.formats.object = {"", ".obj"} - configs.formats.shared = {"", ".dll"} - configs.formats.console = {"", ".exe"} + -- init the file name format + configs.format = {} + configs.format.static = {"", ".lib"} + configs.format.object = {"", ".obj"} + configs.format.shared = {"", ".dll"} + configs.format.console = {"", ".exe"} end -- get the option menu for action: xmake config or global |
