Skip to content

Commit 84d26a0

Browse files
authored
Add llvm-project to source-build. (#14184) (#14314)
* Add llvm-project to source-build. * Add repo references to llvm-project. * Add source-build metadata. * Upgrade CI to CentOS Stream 8. * Fix the image name in the right place. * Patch llvm to use an MS.Build.Traversal that we have. * Add backport PR to patch. * Revert "Upgrade CI to CentOS Stream 8." This reverts commit 6bc2754. * Update to avoid new MSBuild warning that causes build failure. * We use code out of the LLVM directory. Copy the license file from there to the root to satisfy the license checker. * Add SourceBuild.props to llvm. * Update patches with backport PR pointers.
1 parent 475a85f commit 84d26a0

10 files changed

+406
-5
lines changed

eng/Version.Details.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
<Uri>https://github.com/dotnet/windowsdesktop</Uri>
1818
<Sha>d5046afdd2d0e6234ae3fc5bd4ae878594079cc7</Sha>
1919
</Dependency>
20+
<Dependency Name="runtime.linux-x64.Microsoft.NETCore.Runtime.ObjWriter" Version="1.0.0-alpha.1.22364.1" CoherentParentDependency="Microsoft.NETCore.App.Runtime.win-x64">
21+
<Uri>https://github.com/dotnet/llvm-project</Uri>
22+
<Sha>75e182c26dbf5d9f8ccca0ac68ee63b0bebb17b8</Sha>
23+
<SourceBuildTarball RepoName="llvm-project" ManagedOnly="true" />
24+
</Dependency>
2025
<Dependency Name="VS.Redist.Common.NetCore.SharedFramework.x64.7.0" Version="7.0.0-rc.1.22411.12" CoherentParentDependency="Microsoft.NET.Sdk">
2126
<Uri>https://github.com/dotnet/runtime</Uri>
2227
<Sha>f52d8c59bb49360eb2cbeeb863c5856ebd62adda</Sha>

src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ parameters:
1212

1313
# The following parameters aren't expected to be passed in rather they are used for encapsulation
1414
# -----------------------------------------------------------------------------------------------
15-
centOS7Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-source-build-20210714125450-5d87b80
15+
centOSStream8Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8-20220809204800-17a4aab
1616
centOS8Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-source-build-20211118190102-9355e7b
1717
centOSStream9Container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9-20220107135047-4cd394c
1818
debian9Container: mcr.microsoft.com/dotnet-buildtools/prereqs:debian-stretch-20211001171226-047508b
@@ -38,16 +38,16 @@ jobs:
3838
excludeSdkContentTests: true
3939
installerBuildResourceId: ${{ parameters.installerBuildResourceId }}
4040
matrix:
41-
CentOS7-Online:
41+
CentOSStream8-Online:
4242
_BootstrapPrep: false
43-
_Container: ${{ parameters.centOS7Container }}
43+
_Container: ${{ parameters.centOSStream8Container }}
4444
_EnablePoison: false
4545
_ExcludeOmniSharpTests: true
4646
_RunOnline: true
4747
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
48-
CentOS7-Offline:
48+
CentOSStream8-Offline:
4949
_BootstrapPrep: false
50-
_Container: ${{ parameters.centOS7Container }}
50+
_Container: ${{ parameters.centOSStream8Container }}
5151
_EnablePoison: false
5252
_ExcludeOmniSharpTests: true
5353
_RunOnline: false

src/SourceBuild/tarball/content/repos/known-good.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<!-- Tier 1 -->
3434
<RepositoryReference Include="command-line-api" />
3535
<RepositoryReference Include="diagnostics" />
36+
<RepositoryReference Include="llvm-project" />
3637
<RepositoryReference Include="razor-compiler" />
3738
<RepositoryReference Include="roslyn" />
3839
<RepositoryReference Include="source-build-externals" />
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project>
2+
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
3+
4+
<PropertyGroup>
5+
<BuildCommand>$(ProjectDirectory)build$(ShellExtension) $(StandardSourceBuildArgs)</BuildCommand>
6+
7+
<GlobalJsonFile>$(ProjectDirectory)global.json</GlobalJsonFile>
8+
<NuGetConfigFile>$(ProjectDirectory)NuGet.config</NuGetConfigFile>
9+
<OutputPlacementRepoApiImplemented>false</OutputPlacementRepoApiImplemented>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<RepositoryReference Include="arcade" />
14+
</ItemGroup>
15+
16+
<ItemGroup>
17+
<UseSourceBuiltSdkOverride Include="@(ArcadeSdkOverride)" />
18+
</ItemGroup>
19+
20+
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
21+
</Project>

src/SourceBuild/tarball/content/repos/runtime-portable.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<ItemGroup>
1010
<RepositoryReference Include="arcade" />
1111
<RepositoryReference Include="linker" />
12+
<RepositoryReference Include="llvm-project" />
1213
<RepositoryReference Include="source-build-externals" />
1314
<RepositoryReference Include="roslyn" />
1415
</ItemGroup>

src/SourceBuild/tarball/content/repos/runtime.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<RepositoryReference Include="arcade" />
1919
<RepositoryReference Include="symreader" />
2020
<RepositoryReference Include="linker" />
21+
<RepositoryReference Include="llvm-project" />
2122
<RepositoryReference Include="source-build-externals" />
2223
<RepositoryReference Include="roslyn" />
2324
<RepositoryReference Include="runtime-portable" />
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Chris Rummel <[email protected]>
3+
Date: Wed, 10 Aug 2022 13:44:31 -0500
4+
Subject: [PATCH] Upgrade to an MS.Build.Traversal version we have a ref
5+
package for.
6+
7+
Backport PR is https://github.com/dotnet/llvm-project/pull/241.
8+
9+
---
10+
global.json | 2 +-
11+
1 file changed, 1 insertion(+), 1 deletion(-)
12+
13+
diff --git a/global.json b/global.json
14+
index df77e9a199d6..19b99be1f71b 100644
15+
--- a/global.json
16+
+++ b/global.json
17+
@@ -5,6 +5,6 @@
18+
"msbuild-sdks": {
19+
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.22367.1",
20+
"Microsoft.DotNet.Helix.Sdk": "7.0.0-beta.22367.1",
21+
- "Microsoft.Build.Traversal": "2.0.2"
22+
+ "Microsoft.Build.Traversal": "2.0.34"
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Chris Rummel <[email protected]>
3+
Date: Wed, 10 Aug 2022 21:30:49 -0500
4+
Subject: [PATCH] Update for new MSBuild warning.
5+
6+
Backport PR: https://github.com/dotnet/llvm-project/pull/241.
7+
8+
---
9+
nuget/packages.builds | 2 +-
10+
1 file changed, 1 insertion(+), 1 deletion(-)
11+
12+
diff --git a/nuget/packages.builds b/nuget/packages.builds
13+
index a4d2bc03d454..85d860081e53 100644
14+
--- a/nuget/packages.builds
15+
+++ b/nuget/packages.builds
16+
@@ -31,7 +31,7 @@
17+
<ItemGroup>
18+
<!-- Pass the FileVersion calculated by _InitializeAssemblyVersion to referenced projects -->
19+
<ProjectReference Update="@(ProjectReference)"
20+
- AdditionalProperties="%(AdditionalProperties);FileVersion=$(FileVersion)" />
21+
+ AdditionalProperties="%(ProjectReference.AdditionalProperties);FileVersion=$(FileVersion)" />
22+
</ItemGroup>
23+
</Target>
24+
</Project>

0 commit comments

Comments
 (0)