Merge pull request #1555 from nickclark2016/issues/1443

Added API to disable fast up to date checks
This commit is contained in:
starkos 2021-04-19 10:51:48 -04:00 committed by GitHub
commit fae76cb027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 0 deletions

View File

@ -398,3 +398,16 @@ end
]]
end
function suite.disableFastUpToDateCheck()
fastuptodate "Off"
prepare()
test.capture [[
<PropertyGroup Label="Globals">
<ProjectGuid>{42B5DBC6-AE1F-903D-F75D-41E363076E92}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>MyProject</RootNamespace>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
]]
end

View File

@ -133,6 +133,7 @@
m.preferredToolArchitecture,
m.latestTargetPlatformVersion,
m.windowsTargetPlatformVersion,
m.fastUpToDateCheck,
}
end
@ -2688,6 +2689,13 @@
end
function m.fastUpToDateCheck(prj)
if prj.fastuptodate ~= nil then
m.element("DisableFastUpToDateCheck", nil, iif(prj.fastuptodate, "false", "true"))
end
end
function m.preferredToolArchitecture(prj)
if _ACTION >= "vs2013" then
if prj.preferredtoolarchitecture == p.X86_64 then

View File

@ -430,6 +430,12 @@
kind = "string",
}
api.register {
name = "fastuptodate",
scope = "project",
kind = "boolean",
}
api.register {
name = "fatalwarnings",
scope = "config",