summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/language/language.lua4
-rw-r--r--xmake/platforms/windows/check.lua5
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