Skip to content

Commit 7f74937

Browse files
authored
Fix #18777 (#18778)
1 parent a885953 commit 7f74937

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

eng/pipelines/templates/jobs/vmr-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ parameters:
3131
type: string
3232
default: ''
3333

34+
- name: useMonoRuntime
35+
displayName: True when build output uses the mono runtime
36+
type: boolean
37+
default: false
38+
3439
#### SOURCE-ONLY parameters ####
3540

3641
# Instead of building the VMR directly, exports the sources into a tarball and builds from that
@@ -66,11 +71,6 @@ parameters:
6671
type: boolean
6772
default: false
6873

69-
- name: useMonoRuntime
70-
displayName: True when build output uses the mono runtime
71-
type: boolean
72-
default: false
73-
7474
# Freeform field for extra values to pass to build.sh for special build modes
7575
- name: extraProperties
7676
type: string

src/SourceBuild/content/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ usage()
2828
echo " --release-manifest <FILE> A JSON file, an alternative source of Source Link metadata"
2929
echo " --source-repository <URL> Source Link repository URL, required when building from tarball"
3030
echo " --source-version <SHA> Source Link revision, required when building from tarball"
31-
echo " --use-mono-runtime Output uses the mono runtime"
3231
echo " --with-packages <DIR> Use the specified directory of previously-built packages"
3332
echo " --with-sdk <DIR> Use the SDK in the specified directory for bootstrapping"
3433
echo ""
@@ -38,6 +37,7 @@ usage()
3837
echo " --clean-while-building Cleans each repo after building (reduces disk space usage, short: -cwb)"
3938
echo " --excludeCIBinarylog Don't output binary log (short: -nobl)"
4039
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
40+
echo " --use-mono-runtime Output uses the mono runtime"
4141
echo ""
4242
echo "Command line arguments not listed above are passed thru to msbuild."
4343
echo "Arguments can also be passed in with a single hyphen."
@@ -139,9 +139,6 @@ while [[ $# > 0 ]]; do
139139
sourceVersion="$2"
140140
shift
141141
;;
142-
-use-mono-runtime)
143-
properties="$properties /p:SourceBuildUseMonoRuntime=true"
144-
;;
145142
-with-packages)
146143
CUSTOM_PACKAGES_DIR="$(cd -P "$2" && pwd)"
147144
if [ ! -d "$CUSTOM_PACKAGES_DIR" ]; then
@@ -176,6 +173,9 @@ while [[ $# > 0 ]]; do
176173
-preparemachine)
177174
prepare_machine=true
178175
;;
176+
-use-mono-runtime)
177+
properties="$properties /p:SourceBuildUseMonoRuntime=true"
178+
;;
179179

180180
*)
181181
properties="$properties $1"

src/SourceBuild/content/repo-projects/Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
<!-- Only pass when enabled to reduce command line noise. -->
7979
<BuildArgs Condition="'$(DotNetBuildTests)' == 'true'">$(BuildArgs) /p:DotNetBuildTests=true</BuildArgs>
8080
<BuildArgs Condition="'$(NuGetConfigFile)' != ''">$(BuildArgs) /p:RestoreConfigFile=$(NuGetConfigFile)</BuildArgs>
81+
<!-- TODO rename this property https://github.com/dotnet/source-build/issues/4165 -->
82+
<BuildArgs Condition="'$(SourceBuildUseMonoRuntime)' == 'true'">$(BuildArgs) /p:SourceBuildUseMonoRuntime=$(SourceBuildUseMonoRuntime)</BuildArgs>
8183
</PropertyGroup>
8284

8385
<PropertyGroup Condition="'$(DotNetBuildSourceOnly)' != 'true'">
@@ -89,7 +91,6 @@
8991
<BuildArgs>$(BuildArgs) /p:DotNetBuildSourceOnly=true</BuildArgs>
9092
<BuildArgs>$(BuildArgs) /p:PreviouslySourceBuiltNupkgCacheDir="$(PrebuiltSourceBuiltPackagesPath)"</BuildArgs>
9193
<BuildArgs>$(BuildArgs) /p:ReferencePackageNupkgCacheDir="$(ReferencePackagesDir)"</BuildArgs>
92-
<BuildArgs Condition="'$(SourceBuildUseMonoRuntime)' == 'true'">$(BuildArgs) /p:SourceBuildUseMonoRuntime=$(SourceBuildUseMonoRuntime)</BuildArgs>
9394
</PropertyGroup>
9495

9596
<PropertyGroup Condition="'$(EnableExtraDebugging)' == 'true'">

src/SourceBuild/content/repo-projects/runtime.proj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<BuildArgs Condition="'$(DotNetBuildRuntimeWasmEnableThreads)' == 'true'">$(BuildArgs) /p:DotNetBuildRuntimeWasmEnableThreads=true</BuildArgs>
2121
<BuildArgs Condition="'$(DotNetBuildRuntimeNativeAOTRuntimePack)' == 'true'">$(BuildArgs) /p:DotNetBuildRuntimeNativeAOTRuntimePack=true</BuildArgs>
2222
<BuildArgs Condition="'$(PgoInstrument)' == 'true'">$(BuildArgs) $(FlagParameterPrefix)pgoinstrument</BuildArgs>
23-
<BuildArgs Condition="'$(SourceBuildUseMonoRuntime)' != ''">$(BuildArgs) /p:SourceBuildUseMonoRuntime=$(SourceBuildUseMonoRuntime)</BuildArgs>
2423
</PropertyGroup>
2524

2625
<PropertyGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">

0 commit comments

Comments
 (0)