Skip to content

Commit 1caaf86

Browse files
Update SourceBuild.props (#16780)
Condition targets that change what to build based on the source-build flags so that when building the repository inside the VMR for unified-build, we build everything and don't bootstrap. Co-authored-by: Vlad Zarytovskii <[email protected]>
1 parent 9a1609b commit 1caaf86

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

eng/SourceBuild.props

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
The build script passes in the full path of the sln to build. This must be overridden in order to build
1212
the cloned source in the inner build.
1313
-->
14-
<Target Name="ConfigureInnerBuildArg" BeforeTargets="GetSourceBuildCommandConfiguration">
14+
<Target Name="ConfigureInnerBuildArg"
15+
BeforeTargets="GetSourceBuildCommandConfiguration"
16+
Condition="'$(ArcadeBuildFromSource)' == 'true' or '$(DotNetBuildSourceOnly)' == 'true'">
1517
<PropertyGroup>
1618
<InnerBuildArgs>$(InnerBuildArgs) /p:Projects="$(InnerSourceBuildRepoRoot)\Microsoft.FSharp.Compiler.sln"</InnerBuildArgs>
1719
</PropertyGroup>
@@ -23,7 +25,8 @@
2325
-->
2426
<Target Name="BuildBootstrap"
2527
DependsOnTargets="PrepareInnerSourceBuildRepoRoot"
26-
BeforeTargets="RunInnerSourceBuildCommand">
28+
BeforeTargets="RunInnerSourceBuildCommand"
29+
Condition="'$(ArcadeBuildFromSource)' == 'true' or '$(DotNetBuildSourceOnly)' == 'true'">
2730

2831
<PropertyGroup>
2932
<SourceBuildBootstrapTfmArg Condition="$(SourceBuildBootstrapTfm) != ''">--tfm $(SourceBuildBootstrapTfm)</SourceBuildBootstrapTfmArg>

0 commit comments

Comments
 (0)