From 298a3042fdfa8b6d89f485ce0b8478ebd0d8db14 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Mon, 23 Sep 2024 10:11:09 -0400 Subject: [PATCH 1/3] Rename SourceBuildUseMonoRuntime property, which is not SB specific This is a coordinated cross-repo change, and might break the build until all four PRs are merged. The other three are: Ref: https://github.com/dotnet/source-build/issues/4165 --- eng/DotNetBuild.props | 2 +- src/Installer/redist-installer/redist-installer.csproj | 2 +- src/SourceBuild/content/build.sh | 2 +- src/SourceBuild/content/repo-projects/Directory.Build.props | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/DotNetBuild.props b/eng/DotNetBuild.props index efb463b9ea62..2d9bb947cf22 100644 --- a/eng/DotNetBuild.props +++ b/eng/DotNetBuild.props @@ -15,7 +15,7 @@ $(InnerBuildArgs) /p:UseSharedCompilation=false $(InnerBuildArgs) /p:SkipBuildingInstallers=true $(InnerBuildArgs) /p:IncludeAdditionalSharedFrameworks=false - $(InnerBuildArgs) /p:DISABLE_CROSSGEN=true + $(InnerBuildArgs) /p:DISABLE_CROSSGEN=true $(InnerBuildArgs) /p:PgoInstrument=true diff --git a/src/Installer/redist-installer/redist-installer.csproj b/src/Installer/redist-installer/redist-installer.csproj index 972a0838cc9a..6996298b5801 100644 --- a/src/Installer/redist-installer/redist-installer.csproj +++ b/src/Installer/redist-installer/redist-installer.csproj @@ -9,7 +9,7 @@ none true - true + true diff --git a/src/SourceBuild/content/build.sh b/src/SourceBuild/content/build.sh index e32be1f4ca4a..9e870a1b6201 100755 --- a/src/SourceBuild/content/build.sh +++ b/src/SourceBuild/content/build.sh @@ -190,7 +190,7 @@ while [[ $# > 0 ]]; do prepare_machine=true ;; -use-mono-runtime) - properties+=( "/p:SourceBuildUseMonoRuntime=true" ) + properties+=( "/p:DotNetBuildUseMonoRuntime=true" ) ;; -dev) use_dev_versioning=true diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index deda23c650cc..ec204376f2ec 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -80,7 +80,7 @@ $(BuildArgs) /p:DotNetBuildTests=true $(BuildArgs) /p:RestoreConfigFile=$(NuGetConfigFile) - $(BuildArgs) /p:SourceBuildUseMonoRuntime=$(SourceBuildUseMonoRuntime) + $(BuildArgs) /p:DotNetBuildUseMonoRuntime=$(DotNetBuildUseMonoRuntime) $(BuildArgs) /p:SourceBuiltAssetsDir=$(ArtifactsAssetsDir) $(BuildArgs) /p:SourceBuiltAssetManifestsDir=$(RepoAssetManifestsDir) From 9f0a537db010d496b2faedac62970f9a5f2b830d Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Mon, 23 Sep 2024 10:39:26 -0400 Subject: [PATCH 2/3] Add downstream patches for now, pending upstream PR merges --- ...ldUseMonoRuntime-property-which-is-n.patch | 27 ++++++++++ ...ldUseMonoRuntime-property-which-is-n.patch | 50 +++++++++++++++++++ ...ldUseMonoRuntime-property-which-is-n.patch | 27 ++++++++++ 3 files changed, 104 insertions(+) create mode 100644 src/SourceBuild/patches/aspnetcore/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch create mode 100644 src/SourceBuild/patches/fsharp/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch create mode 100644 src/SourceBuild/patches/runtime/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch diff --git a/src/SourceBuild/patches/aspnetcore/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch b/src/SourceBuild/patches/aspnetcore/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch new file mode 100644 index 000000000000..72642590a187 --- /dev/null +++ b/src/SourceBuild/patches/aspnetcore/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch @@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jo Shields +Date: Mon, 23 Sep 2024 10:11:07 -0400 +Subject: [PATCH] Rename SourceBuildUseMonoRuntime property, which is not SB + specific + +This is a coordinated cross-repo change, and might break the build until +all four PRs are merged. The other three are: + +Ref: https://github.com/dotnet/source-build/issues/4165 +--- + eng/DotNetBuild.props | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/eng/DotNetBuild.props b/eng/DotNetBuild.props +index 8f6e67aba6..b4a0935104 100644 +--- a/eng/DotNetBuild.props ++++ b/eng/DotNetBuild.props +@@ -64,7 +64,7 @@ + BeforeTargets="GetSourceBuildCommandConfiguration"> + + +- $(InnerBuildArgs) /p:CrossgenOutput=false ++ $(InnerBuildArgs) /p:CrossgenOutput=false + + + diff --git a/src/SourceBuild/patches/fsharp/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch b/src/SourceBuild/patches/fsharp/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch new file mode 100644 index 000000000000..30b5ef5f1578 --- /dev/null +++ b/src/SourceBuild/patches/fsharp/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch @@ -0,0 +1,50 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jo Shields +Date: Mon, 23 Sep 2024 10:11:01 -0400 +Subject: [PATCH] Rename SourceBuildUseMonoRuntime property, which is not SB + specific + +This is a coordinated cross-repo change, and might break the build until +all four PRs are merged. The other three are: + +Ref: https://github.com/dotnet/source-build/issues/4165 +--- + Directory.Build.props | 2 +- + eng/DotNetBuild.props | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Directory.Build.props b/Directory.Build.props +index 7f5b362cb..d16c9ad5d 100644 +--- a/Directory.Build.props ++++ b/Directory.Build.props +@@ -39,7 +39,7 @@ + + true + +- false ++ false + + + +diff --git a/eng/DotNetBuild.props b/eng/DotNetBuild.props +index c7bc688ba..0734c9cf8 100644 +--- a/eng/DotNetBuild.props ++++ b/eng/DotNetBuild.props +@@ -30,7 +30,7 @@ + + + --tfm $(SourceBuildBootstrapTfm) +- false ++ false + + + + + diff --git a/src/SourceBuild/patches/runtime/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch b/src/SourceBuild/patches/runtime/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch new file mode 100644 index 000000000000..849ae94a30ce --- /dev/null +++ b/src/SourceBuild/patches/runtime/0001-Rename-SourceBuildUseMonoRuntime-property-which-is-n.patch @@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jo Shields +Date: Mon, 23 Sep 2024 10:11:14 -0400 +Subject: [PATCH] Rename SourceBuildUseMonoRuntime property, which is not SB + specific + +This is a coordinated cross-repo change, and might break the build until +all four PRs are merged. The other three are: + +Ref: https://github.com/dotnet/source-build/issues/4165 +--- + eng/DotNetBuild.props | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/eng/DotNetBuild.props b/eng/DotNetBuild.props +index ce13d6ca5b0..316eea2522b 100644 +--- a/eng/DotNetBuild.props ++++ b/eng/DotNetBuild.props +@@ -53,7 +53,7 @@ + $(InnerBuildArgs) $(FlagParameterPrefix)verbosity $(LogVerbosity) + $(InnerBuildArgs) $(FlagParameterPrefix)nodereuse $(ArcadeFalseBoolBuildArg) + $(InnerBuildArgs) $(FlagParameterPrefix)warnAsError $(ArcadeFalseBoolBuildArg) +- $(InnerBuildArgs) $(FlagParameterPrefix)usemonoruntime ++ $(InnerBuildArgs) $(FlagParameterPrefix)usemonoruntime + + $(InnerBuildArgs) --outputrid $(TargetRid) +