diff options
| author | ruki <[email protected]> | 2017-01-25 21:27:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-01-25 21:27:00 +0800 |
| commit | 52d3b60f66b27a0a7f6fad5048f72de396d91ca3 (patch) | |
| tree | 6f24ab947863cf3afad9e241ff96780751bea7f5 | |
| parent | 20ac90606b71e56baf1f8f8ef5356f23685ddac8 (diff) | |
attempt to support vs2017
| -rw-r--r-- | xmake/core/language/language.lua | 4 | ||||
| -rw-r--r-- | xmake/platforms/windows/check.lua | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/xmake/core/language/language.lua b/xmake/core/language/language.lua index e5ed8fb2a..f14ebc613 100644 --- a/xmake/core/language/language.lua +++ b/xmake/core/language/language.lua @@ -181,9 +181,9 @@ function language._interpreter() , dictionary = { -- language.set_xxx - "language.set_sourcekinds" + "language.set_namedflags" + , "language.set_sourcekinds" , "language.set_sourceflags" - , "language.set_namedflags" } } diff --git a/xmake/platforms/windows/check.lua b/xmake/platforms/windows/check.lua index 513d05cdb..630099952 100644 --- a/xmake/platforms/windows/check.lua +++ b/xmake/platforms/windows/check.lua @@ -34,7 +34,8 @@ function _apply_vsenv(config, vs) -- version => envname local version2envname = { - ["2015"] = "VS140COMNTOOLS" + ["2017"] = "VS150COMNTOOLS" + , ["2015"] = "VS140COMNTOOLS" , ["2013"] = "VS120COMNTOOLS" , ["2012"] = "VS110COMNTOOLS" , ["2010"] = "VS100COMNTOOLS" @@ -149,7 +150,7 @@ function _check_vs(config) -- attempt to check them from the envirnoment variables again vs = nil if not vs then - for _, version in ipairs({"2015", "2013", "2012", "2010", "2008", "2005", "2003", "7.0", "6.0", "5.0", "4.2"}) do + for _, version in ipairs({"2017", "2015", "2013", "2012", "2010", "2008", "2005", "2003", "7.0", "6.0", "5.0", "4.2"}) do -- attempt to check it if _check_compiler(config, version) then |
