-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Use Microsoft.Net.Compilers.Toolset in coreclr/src/Common projects #901
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
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
12b164a
Remove dependencies.props favor of Versions.props
ViktorHofer 550cde8
Use Arcade Sdk.targets in coreclr/src/Common
ViktorHofer 22f4c79
Split restore and build targets in runtest.proj
ViktorHofer d8017e9
Fix duplicate imports of liveBuild.targets
ViktorHofer 35475c3
Fix intermediate paths for test projects
ViktorHofer 9ead24c
Various path fixes
ViktorHofer fab6cf3
MSBuild cleanup
ViktorHofer 99d0310
Update paths and common props
ViktorHofer b638594
Cleanup coreclr managed properties
ViktorHofer 699ca67
Split restore and build to fix design time imports
ViktorHofer 35e8971
Further path fixes
ViktorHofer c8745d8
Pre-Christmas changes
ViktorHofer d398b71
Share packaging props
ViktorHofer cbf68ec
Remove rhel6 instance
ViktorHofer aad6adc
Use PackageLicenseExpression over PackageLicenseFile
ViktorHofer d38b14e
More packaging cleanup
ViktorHofer 5d29e54
Remove default set properties
ViktorHofer d83b33e
Revert some platform property changes
ViktorHofer 5a26d73
Remove ArchGroup property in favor of Platform
ViktorHofer 4a44172
Remove ConfigurationGroup in favor of Configuration
ViktorHofer 02c124e
Cleanup
ViktorHofer 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
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 |
|---|---|---|
| @@ -1,28 +1,140 @@ | ||
| <Project> | ||
|
|
||
| <Import Project="..\..\Directory.Build.props" /> | ||
|
|
||
| <!-- Set default Configuration and Platform --> | ||
| <PropertyGroup> | ||
| <SkipImportArcadeSdkFromRoot>true</SkipImportArcadeSdkFromRoot> | ||
| <Platform Condition="'$(__BuildArch)' != ''">$(__BuildArch)</Platform> | ||
| <!-- AnyCPU is set by default if platform isn't set. --> | ||
| <Platform Condition="'$(Platform)' == 'AnyCPU'" /> | ||
| <Platform Condition="'$(Platform)' == '' or '$(Platform)' == 'amd64'">x64</Platform> | ||
| <Platform Condition="'$(Platform)' == 'armel'">arm</Platform> | ||
| <TargetArchitecture Condition="'$(TargetArchitecture)' == ''">$(Platform)</TargetArchitecture> | ||
|
|
||
| <OSGroup Condition="'$(__BuildOS)' != ''">$(__BuildOS)</OSGroup> | ||
| <OSGroup Condition="'$(OSGroup)' == '' and '$([MSBuild]::IsOSPlatform(Windows))' == 'true'">Windows_NT</OSGroup> | ||
| <OSGroup Condition="'$(OSGroup)' == '' and '$([MSBuild]::IsOSPlatform(Linux))' == 'true'">Linux</OSGroup> | ||
| <OSGroup Condition="'$(OSGroup)' == '' and '$([MSBuild]::IsOSPlatform(OSX))' == 'true'">OSX</OSGroup> | ||
| <OSGroup Condition="'$(OSGroup)' == ''">AnyOS</OSGroup> | ||
|
|
||
| <Configuration Condition="'$(__BuildType)' != ''">$(__BuildType)</Configuration> | ||
| <Configuration Condition="'$(Configuration)' == '' or '$(Configuration)' == 'debug'">Debug</Configuration> | ||
| <Configuration Condition="'$(Configuration)' == 'release'">Release</Configuration> | ||
| <Configuration Condition="'$(Configuration)' == 'checked'">Checked</Configuration> | ||
|
|
||
| <!-- Used by VS configuration manager. --> | ||
| <Configurations>Debug;Release;Checked</Configurations> | ||
| <Platforms>x64;x86;arm;arm64</Platforms> | ||
| </PropertyGroup> | ||
| <Import Project="..\..\Directory.Build.props" /> | ||
|
|
||
| <!-- Ensure our properties are set before Arcade defines defaults --> | ||
| <Import Project="dir.common.props" /> | ||
| <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" /> | ||
| <!-- Setup Default symbol and optimization for Configuration --> | ||
| <PropertyGroup> | ||
| <!-- Ensure a portable PDB is emitted. A PDB is needed for crossgen. --> | ||
| <DebugType>Portable</DebugType> | ||
| <DebugSymbols>true</DebugSymbols> | ||
| </PropertyGroup> | ||
| <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> | ||
| <Optimize Condition="'$(Optimize)' == ''">false</Optimize> | ||
| <DefineConstants>$(DefineConstants);DEBUG</DefineConstants> | ||
| </PropertyGroup> | ||
| <PropertyGroup Condition="'$(Configuration)' == 'Checked'"> | ||
| <Optimize Condition="'$(Optimize)' == ''">true</Optimize> | ||
| <DefineConstants>$(DefineConstants);DEBUG</DefineConstants> | ||
| </PropertyGroup> | ||
| <PropertyGroup Condition="'$(Configuration)' == 'Release'"> | ||
| <Optimize Condition="'$(Optimize)' == ''">true</Optimize> | ||
| </PropertyGroup> | ||
|
|
||
| <!-- Setup properties per OS --> | ||
| <Choose> | ||
| <When Condition="'$(OSGroup)' == 'AnyOS'"> | ||
| <PropertyGroup> | ||
| </PropertyGroup> | ||
| </When> | ||
| <When Condition="'$(OSGroup)' == 'Windows_NT'"> | ||
| <PropertyGroup> | ||
| <!-- Since cross compilation of test builds on Windows is possible, the | ||
| TargetsWindows property may already be set. Only set the property if | ||
| it is not already defined --> | ||
| <TargetsWindows Condition="'$(TargetsWindows)' == ''">true</TargetsWindows> | ||
| <TestNugetRuntimeId>win-$(Platform)</TestNugetRuntimeId> | ||
| </PropertyGroup> | ||
| </When> | ||
| <When Condition="'$(OSGroup)' == 'Linux'"> | ||
| <PropertyGroup> | ||
| <TargetsUnix>true</TargetsUnix> | ||
| <TargetsLinux>true</TargetsLinux> | ||
| <TestNugetRuntimeId>ubuntu.14.04-$(Platform)</TestNugetRuntimeId> | ||
| </PropertyGroup> | ||
| </When> | ||
| <When Condition="'$(OSGroup)' == 'OSX'"> | ||
| <PropertyGroup> | ||
| <TargetsUnix>true</TargetsUnix> | ||
| <TargetsOSX>true</TargetsOSX> | ||
| <TestNugetRuntimeId>osx.10.12-$(Platform)</TestNugetRuntimeId> | ||
| </PropertyGroup> | ||
| </When> | ||
| <When Condition="'$(OSGroup)' == 'FreeBSD'"> | ||
| <PropertyGroup> | ||
| <TargetsUnix>true</TargetsUnix> | ||
| <TargetsFreeBSD>true</TargetsFreeBSD> | ||
| <TestNugetRuntimeId>ubuntu.14.04-$(Platform)</TestNugetRuntimeId> | ||
| </PropertyGroup> | ||
| </When> | ||
| <Otherwise> | ||
| <PropertyGroup> | ||
| <ConfigurationErrorMsg>$(ConfigurationErrorMsg);Unknown OSGroup [$(OSGroup)] specificed in your project.</ConfigurationErrorMsg> | ||
| </PropertyGroup> | ||
| </Otherwise> | ||
| </Choose> | ||
|
|
||
| <!-- Set up common target properties that we use to conditionally include sources --> | ||
| <PropertyGroup> | ||
| <!-- We are only tracking Linux Distributions for Nuget RID mapping --> | ||
| <DistroRid Condition="'$(TargetsLinux)' == 'true'">$(__DistroRid)</DistroRid> | ||
|
|
||
| <TargetRid>$(__RuntimeId)</TargetRid> | ||
| <TargetRid Condition="'$(TargetRid)' == ''">$(TestNugetRuntimeId)</TargetRid> | ||
|
|
||
| <PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''"> | ||
| <Copyright>$(CopyrightNetFoundation)</Copyright> | ||
| <PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
| <!-- Folder for cross target components --> | ||
| <CrossTargetComponentFolder Condition="'$(Platform)' == 'arm64'">x64</CrossTargetComponentFolder> | ||
| <CrossTargetComponentFolder Condition="'$(Platform)' == 'arm' and '$(TargetsWindows)' == 'true'">x86</CrossTargetComponentFolder> | ||
| <CrossTargetComponentFolder Condition="'$(Platform)' == 'arm' and '$(TargetsLinux)' == 'true'">x64</CrossTargetComponentFolder> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup> | ||
| <SignAssembly Condition="'$(UsingMicrosoftNETSdk)'!='true'">false</SignAssembly> | ||
| <OSPlatformConfig>$(OSGroup).$(Platform).$(Configuration)</OSPlatformConfig> | ||
|
|
||
| <BinDir>$(ArtifactsBinDir)coreclr\$(OSPlatformConfig)\</BinDir> | ||
| <SourceDir>$(MSBuildThisFileDirectory)src\</SourceDir> | ||
| <PackagesBinDir>$(BinDir).nuget\</PackagesBinDir> | ||
|
|
||
| <BaseRootOutputPath>$(BinDir)</BaseRootOutputPath> | ||
| <BaseOutputPath>$(BaseRootOutputPath)$(MSBuildProjectName)\</BaseOutputPath> | ||
| <OutputPath>$(BaseOutputPath)</OutputPath> | ||
| <BaseRootIntermediateOutputPath>$(ArtifactsObjDir)coreclr\$(OSPlatformConfig)\</BaseRootIntermediateOutputPath> | ||
| <BaseIntermediateOutputPath>$(BaseRootIntermediateOutputPath)$(MSBuildProjectName)\</BaseIntermediateOutputPath> | ||
| <IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath> | ||
| </PropertyGroup> | ||
|
|
||
| <!-- | ||
| The IL SDK adds a packagereference to the native ilasm package, | ||
| but does not detect musl or rhel, so we set the RID | ||
| ourselves. If we passed in a proper host RID from the build | ||
| scripts, we could also use that instead of relying on the IL | ||
| SDK RID detection. | ||
| --> | ||
| <PropertyGroup> | ||
| <CL_MPCount>$(NumberOfCores)</CL_MPCount> | ||
| <MicrosoftNetCoreIlasmPackageRuntimeId Condition=" '$(TargetRid)' == 'linux-musl-x64' ">$(TargetRid)</MicrosoftNetCoreIlasmPackageRuntimeId> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup> | ||
| <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
| <CL_MPCount>$(NumberOfCores)</CL_MPCount> | ||
| <!-- Enables Strict mode for Roslyn compiler --> | ||
| <Features>strict;nullablePublicOnly</Features> | ||
| </PropertyGroup> | ||
|
|
||
| <Import Project="$(MSBuildThisFileDirectory)clr.featuredefines.props" /> | ||
|
|
||
| </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
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
Oops, something went wrong.
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.