diff options
author | Katelyn Gadd <kg@luminance.org> | 2018-03-31 02:06:07 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-03-31 02:06:07 +0300 |
commit | 4d78aaf7b46c9f6d32bc4d74e94cd2283bbba04f (patch) | |
tree | cfcd4574e59ca221d37c2364fca32680980630c4 /msvc | |
parent | 1931cb1dcbca5c24f0184b29db6c3b3dec26f5b0 (diff) |
[genproj] When using fallback profile selection don't build the projects that were missing a profile (#7926)
Fixes #7903.
Diffstat (limited to 'msvc')
-rw-r--r-- | msvc/scripts/genproj.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/msvc/scripts/genproj.cs b/msvc/scripts/genproj.cs index 9c3454304ff..732c4f4ca15 100644 --- a/msvc/scripts/genproj.cs +++ b/msvc/scripts/genproj.cs @@ -127,6 +127,7 @@ class SlnGenerator { continue; var platformToBuild = profile; + var isBuildEnabled = true; HashSet<string> projectProfiles; if ( @@ -135,12 +136,15 @@ class SlnGenerator { ) { fallbackProfileNames.Add (platformToBuild); platformToBuild = defaultPlatform; + isBuildEnabled = false; } sln.WriteLine ("\t\t{0}.Debug|{1}.ActiveCfg = Debug|{2}", guid, profile, platformToBuild); - sln.WriteLine ("\t\t{0}.Debug|{1}.Build.0 = Debug|{2}", guid, profile, platformToBuild); + if (isBuildEnabled) + sln.WriteLine ("\t\t{0}.Debug|{1}.Build.0 = Debug|{2}", guid, profile, platformToBuild); sln.WriteLine ("\t\t{0}.Release|{1}.ActiveCfg = Release|{2}", guid, profile, platformToBuild); - sln.WriteLine ("\t\t{0}.Release|{1}.Build.0 = Release|{2}", guid, profile, platformToBuild); + if (isBuildEnabled) + sln.WriteLine ("\t\t{0}.Release|{1}.Build.0 = Release|{2}", guid, profile, platformToBuild); } if (fallbackProfileNames.Count > 0) |