Skip to content

Commit e78bacb

Browse files
authored
Condition source-build only stuff on source-build (#16815)
* Condition source-build only stuff on source-build * Update SourceBuild.props
1 parent 9b19710 commit e78bacb

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)