-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Clean up the crossgen2_publish project and local/live packs references #92826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ViktorHofer
merged 16 commits into
dotnet:main
from
jkoritzinsky:crossgen2-publish-cleanup
Oct 3, 2023
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d4dffde
Inline some of the options for the new crossgen2_publish project.
jkoritzinsky 47325f7
Resolve TODOs in targetingpacks.targets
jkoritzinsky 1a4402d
Crossgen1 is long gone. Don't try to discover it in our override targ…
jkoritzinsky affe0fd
Move ReadyToRun.targets infra into the shared repo infrastructure and…
jkoritzinsky bfc601d
Remove extraneous property set (the same value is calculated automati…
jkoritzinsky 0b69d8d
Remove outdated comment.
jkoritzinsky cffdb4d
Fix NativeAOT and installer legs
jkoritzinsky 0e3c720
Condition turning off pack downloads based on opt-in to local pack us…
jkoritzinsky 09eaab4
Use the LKG host instead of the 7.0 host as the fallback for NativeEx…
jkoritzinsky de2f5e2
Apply suggestions from code review
jkoritzinsky c47bb43
Merge branch 'main' of github.com:dotnet/runtime into crossgen2-publi…
jkoritzinsky 6620cc6
Remove AdditionalProperties as they aren't needed (global properties …
jkoritzinsky 6a29dc3
PR feedback
jkoritzinsky 8d32750
Hook into the targets pipeline to avoid overridding targets for R2Rin…
jkoritzinsky aac7ba1
Don't set CoreCLRArtifactsPath manually.
jkoritzinsky fdf9b1b
PR feedback
jkoritzinsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,19 +142,6 @@ | |
| </PropertyGroup> | ||
| </Target> | ||
|
|
||
| <Target Name="__ReplaceCrossgen2ExecutableWithFreshlyBuiltOne" | ||
| BeforeTargets="_PrepareForReadyToRunCompilation"> | ||
| <PropertyGroup> | ||
| <Crossgen2ArtifactPath>$(CoreCLRCrossgen2Dir)crossgen2$(ExeSuffix)</Crossgen2ArtifactPath> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Crossgen2CurrentTool Include="@(Crossgen2Tool->'$(Crossgen2ArtifactPath)')" /> | ||
| <Crossgen2Tool Remove="@(Crossgen2Tool)" /> | ||
| <Crossgen2Tool Include="@(Crossgen2CurrentTool)" /> | ||
| </ItemGroup> | ||
| </Target> | ||
|
|
||
|
Comment on lines
-145
to
-157
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ivdiazsa I've removed this target now that we automatically hook up the Crossgen2 tool when referencing the live build. |
||
| <Target Name="PublishTestAsSingleFile" | ||
| Condition="'$(IsCrossTargetingBuild)' != 'true'" | ||
| AfterTargets="Build" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 3 additions & 38 deletions
41
src/installer/pkg/sfx/Microsoft.NETCore.App/ReadyToRun.targets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,51 +1,16 @@ | ||
| <Project> | ||
| <Target Name="ResolveReadyToRunCompilers" DependsOnTargets="ResolveRuntimeFilesFromLocalBuild"> | ||
| <ItemGroup> | ||
| <OptimizationMibcFiles Include="$(CoreCLRArtifactsPath)StandardOptimizationData.mibc" Condition="'$(DotNetBuildFromSource)' != 'true'" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PublishReadyToRunCrossgen2ExtraArgsList Include="--targetarch:$(TargetArchitecture) --targetos:$(TargetOS)"/> | ||
|
|
||
| <!-- Only use mibc files if UsingToolIbcOptimization is false. Allows enabling/disabling using ibc instead of mibc data --> | ||
| <PublishReadyToRunCrossgen2ExtraArgsList Condition="'$(UsingToolIbcOptimization)' != 'true' and '$(EnableNgenOptimization)' == 'true'" Include="@(OptimizationMibcFiles->'-m:%(Identity)')"/> | ||
| <PublishReadyToRunCrossgen2ExtraArgsList Condition="'$(UsingToolIbcOptimization)' != 'true' and '$(EnableNgenOptimization)' == 'true'" Include="--embed-pgo-data"/> | ||
| </ItemGroup> | ||
|
|
||
| <!-- The following property group can be simplified once runtime repo switches over to SDK 6.0 drop --> | ||
| <PropertyGroup> | ||
| <Crossgen2Dll>$(CoreCLRArtifactsPath)\$(BuildArchitecture)\crossgen2\crossgen2.dll</Crossgen2Dll> | ||
|
|
||
| <PublishReadyToRunUseCrossgen2>true</PublishReadyToRunUseCrossgen2> | ||
| <PublishReadyToRunCrossgen2ExtraArgs>@(PublishReadyToRunCrossgen2ExtraArgsList)</PublishReadyToRunCrossgen2ExtraArgs> | ||
| <Crossgen2Dll>$([MSBuild]::NormalizePath('$(Crossgen2Dir)', 'tools', 'crossgen2.dll'))</Crossgen2Dll> | ||
| <PublishReadyToRunPerfmapFormatVersion Condition="'$(PublishReadyToRunPerfmapFormatVersion)' == ''">1</PublishReadyToRunPerfmapFormatVersion> | ||
|
|
||
| <ScriptExt>.sh</ScriptExt> | ||
| <ScriptExt Condition="'$(OS)' == 'Windows_NT'">.cmd</ScriptExt> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup Condition="'$(RuntimeFlavor)' != 'Mono'"> | ||
sbomer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <_crossTargetJit Include="@(CoreCLRCrossTargetFiles)" Condition="'%(FileName)' == '$(LibPrefix)clrjit' and '%(Extension)' == '$(LibSuffix)'" /> | ||
| <_clrjit Include="@(RuntimeFiles)" Condition="'%(FileName)' == '$(LibPrefix)clrjit' and '%(Extension)' == '$(LibSuffix)'" /> | ||
| <_crossTargetCrossgen Include="@(CoreCLRCrossTargetFiles)" Condition="'%(FileName)' == 'crossgen' and '%(Extension)' == '$(ExeSuffix)'" /> | ||
| <_crossgen Include="@(RuntimeFiles)" Condition="'%(FileName)' == 'crossgen' and '%(Extension)' == '$(ExeSuffix)'" /> | ||
| </ItemGroup> | ||
| <ItemGroup Condition="'@(_crossTargetJit)' != '' and '@(_crossTargetCrossgen)' != ''"> | ||
| <CrossgenTool Include="@(_crossTargetCrossgen->ClearMetadata())" | ||
| JitPath="@(_crossTargetJit)" | ||
| DiaSymReader="$(_diaSymReaderPath)" /> | ||
| </ItemGroup> | ||
| <ItemGroup Condition="'@(_crossTargetJit)' == '' and '@(_crossTargetCrossgen)' == ''"> | ||
| <CrossgenTool Include="@(_crossgen->ClearMetadata())" | ||
| JitPath="@(_clrjit)" | ||
| DiaSymReader="$(_diaSymReaderPath)" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <Crossgen2Tool Include="$(Crossgen2Dll)" | ||
| TargetArch="$(TargetArchitecture)" | ||
| TargetOS="$(TargetOS)" | ||
| DotNetHostPath="$(RepoRoot)/dotnet$(ScriptExt)" | ||
| DotNetHostPath="$(DotNetTool)" | ||
| PerfmapFormatVersion="$(PublishReadyToRunPerfmapFormatVersion)"/> | ||
| </ItemGroup> | ||
| </Target> | ||
| </Project> | ||
| </Project> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.