Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,10 @@
<Sha>4234ffac87e305da80597cb46dc0d4a87fc4f7c2</Sha>
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
</Dependency>
<Dependency Name="runtime.linux-x64.Microsoft.NETCore.Runtime.ObjWriter" Version="8.0.0-preview.6.23316.4" CoherentParentDependency="Microsoft.NETCore.App.Runtime.win-x64">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this would be defined within the runtime's version.details.xml. Additionally the use of SourceBuildTarball should be updated to just SourceBuild. I am trying to remove the SourceBuildTarball attribute.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied it from the old PR. I will update it.

I have no idea what this does. Can you give a short description how this is used, or point me to some doc?

Copy link
Member Author

@tmds tmds Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this would be defined within the runtime's version.details.xml.

You want me to make a PR against https://github.com/dotnet/runtime?
and add

    <Dependency Name="runtime.linux-x64.Microsoft.NETCore.Runtime.ObjWriter" Version="8.0.0-preview.6.23316.4" CoherentParentDependency="Microsoft.NETCore.App.Runtime.win-x64">
      <Uri>https://github.com/dotnet/llvm-project</Uri>
      <Sha>30e9e6bc2e9f04e0a75daf4b8088ee91f66069da</Sha>
    </Dependency>

to its eng/Version.Details.xml?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@MichaelSimons MichaelSimons Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give a short description how this is used

It does two things.

  1. It indicates that the dependency should be included in the VMR. It specified the digest to include. The version details graph is walked and the first entry wins if there are multiple for a repo.

  2. It tells the source build infra to pull in the intermediate package for the repo when building the repo level source build. The intermediate contents pre-populate the local nuget cache for prebuilt detection.

It looks like these are already defined:

One will need the SourceBuild element added to it.

Copy link
Member Author

@tmds tmds Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One will need the element added to it.

I don't understand what you mean.

got it, the SourceBuild element.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, I used angle brackets in my original response and it wasn't rendered. I updated my comment.

<Uri>https://github.com/dotnet/llvm-project</Uri>
<Sha>30e9e6bc2e9f04e0a75daf4b8088ee91f66069da</Sha>
<SourceBuildTarball RepoName="llvm-project" ManagedOnly="true" />
</Dependency>
</ToolsetDependencies>
</Dependencies>
1 change: 1 addition & 0 deletions src/SourceBuild/content/repo-projects/dotnet.proj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<!-- Product Repos -->
<RepositoryReference Include="command-line-api" />
<RepositoryReference Include="diagnostics" />
<RepositoryReference Include="llvm-project" />
<RepositoryReference Include="emsdk" />
<RepositoryReference Include="xliff-tasks" />
<RepositoryReference Include="cecil" />
Expand Down
18 changes: 18 additions & 0 deletions src/SourceBuild/content/repo-projects/llvm-project.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

<PropertyGroup>
<BuildCommandArgs/>
<BuildCommand>$(ProjectDirectory)build$(ShellExtension) $(StandardSourceBuildArgs) $(BuildCommandArgs)</BuildCommand>
</PropertyGroup>

<ItemGroup>
<RepositoryReference Include="arcade" />
</ItemGroup>

<ItemGroup>
<UseSourceBuiltSdkOverride Include="@(ArcadeSdkOverride)" />
</ItemGroup>

<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project>
1 change: 1 addition & 0 deletions src/SourceBuild/content/repo-projects/runtime.proj
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<RepositoryReference Include="cecil" />
<RepositoryReference Include="symreader" />
<RepositoryReference Include="source-build-externals" />
<RepositoryReference Include="llvm-project" />
</ItemGroup>

<UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="AddRidToRuntimeJson" />
Expand Down
18 changes: 18 additions & 0 deletions src/VirtualMonoRepo/source-mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,24 @@
"src/SourceBuild/content/**/*"
]
},
{
"name": "llvm-project",
"defaultRemote": "https://github.com/dotnet/llvm-project",
"exclude": [
"bolt",
"clang/docs",
"clang/www",
"flang",
"libclc",
"lldb",
"llvm/docs",
"mlir",
"openmp",
"polly",
"third-party",
"**/tests/**"
]
},
{
"name": "msbuild",
"defaultRemote": "https://github.com/dotnet/msbuild"
Expand Down