diff --git a/src/SourceBuild/patches/runtime/0002-short-stack-support.patch b/src/SourceBuild/patches/runtime/0002-short-stack-support.patch new file mode 100644 index 000000000..783d86b3c --- /dev/null +++ b/src/SourceBuild/patches/runtime/0002-short-stack-support.patch @@ -0,0 +1,48 @@ +From 6e36330872998c791a2c0d31b688e1bdece2451f Mon Sep 17 00:00:00 2001 +From: Jo Shields +Date: Fri, 2 Feb 2024 06:56:20 -0500 +Subject: [PATCH] Source built short stack support (#97725) + +Backport: https://github.com/dotnet/runtime/pull/97725 + +--- a/eng/SourceBuild.props 2024-02-07 11:01:33.807337902 -0500 ++++ b/eng/SourceBuild.props 2024-02-05 16:48:58.219933758 -0500 +@@ -15,6 +15,7 @@ + + <_targetRidPlatformIndex>$(TargetRid.LastIndexOf('-')) + $(TargetRid.Substring($(_targetRidPlatformIndex)).TrimStart('-')) ++ $(TargetRid.Substring(0, $(_targetRidPlatformIndex))) + + <_hostRidPlatformIndex>$(_hostRid.LastIndexOf('-')) + <_hostArch>$(_hostRid.Substring($(_hostRidPlatformIndex)).TrimStart('-')) +@@ -22,6 +23,17 @@ + minimal + + ++ ++ true ++ true ++ true ++ true ++ true ++ true ++ true ++ true ++ ++ + + +@@ -29,9 +41,10 @@ + This allows to build the repository using './build.sh /p:DotNetBuildFromSource=true'. + Properties that control flags from source-build, and the expected output for source-build should be added to this file. --> + $(InnerBuildArgs) $(FlagParameterPrefix)arch $(TargetArch) +- $(InnerBuildArgs) $(FlagParameterPrefix)cross ++ $(InnerBuildArgs) $(FlagParameterPrefix)os $(TargetOS) ++ $(InnerBuildArgs) $(FlagParameterPrefix)cross + $(InnerBuildArgs) $(FlagParameterPrefix)configuration $(Configuration) +- $(InnerBuildArgs) $(FlagParameterPrefix)allconfigurations ++ $(InnerBuildArgs) $(FlagParameterPrefix)allconfigurations + $(InnerBuildArgs) $(FlagParameterPrefix)verbosity $(LogVerbosity) + $(InnerBuildArgs) $(FlagParameterPrefix)nodereuse $(ArcadeFalseBoolBuildArg) + $(InnerBuildArgs) $(FlagParameterPrefix)warnAsError $(ArcadeFalseBoolBuildArg)