From ab4a8618cffc02d0838bd64372b066c99c2d2d7e Mon Sep 17 00:00:00 2001 From: stijn Date: Mon, 1 May 2017 10:50:58 +0200 Subject: [PATCH] msvc: Workaround parser bug in older MSBuild versions Versions prior to v14.0 have a bug in parsing item functions when used within a condition: https://github.com/Microsoft/msbuild/issues/368. Since commit [db9c2e3] this results in an error when building MicroPython with for example VS2013. Fix this by creating an intermediate property. --- windows/msvc/genhdr.targets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/msvc/genhdr.targets b/windows/msvc/genhdr.targets index 5792d878ec..cac3e3ddc4 100644 --- a/windows/msvc/genhdr.targets +++ b/windows/msvc/genhdr.targets @@ -69,13 +69,14 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) { @(QstrDependencies->AnyHaveMetadataValue('Changed', 'True')) + @(PyQstrSourceFiles->AnyHaveMetadataValue('Changed', 'True')) + Condition="'$(RunPreProcConcat)' == 'True' Or '$(ForceQstrRebuild)' == 'True'"/>