forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a simple minimal MSBuild front-end (dotnet/coreclr#27778)
* Implement simple coreclr.proj msbuild entrypoint for building the coreclr product in the common configuration. * Add dummy targets and automatically emit the enforcePGO argument when applicable. * Add officialbuildId and stripSymbols arguments. * Always pass the -stripsymbols argument. Commit migrated from dotnet/coreclr@f1c282b
- Loading branch information
1 parent
8f794d7
commit ab7a6f3
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<Project> | ||
<Import Project="Directory.Build.props" /> | ||
<Import Project="Directory.Build.targets" /> | ||
|
||
<Target Name="Build"> | ||
<ItemGroup> | ||
<_CoreClrBuildArg Condition="$([MSBuild]::IsOsPlatform(Windows))" Include="-skiptests" /> | ||
<_CoreClrBuildArg Include="-$(Platform)" /> | ||
<_CoreClrBuildArg Include="-$(Configuration.ToLower())" /> | ||
<_CoreClrBuildArg Condition="'$(ContinuousIntegrationBuild)' == 'true'" Include="-ci" /> | ||
<_CoreClrBuildArg Condition="$([MSBuild]::IsOsPlatform(Windows)) and ('$(Platform)' == 'x86' or '$(Platform)' = 'x64') and '$(Configuration)' == 'Release'" Include="-enforcepgo" /> | ||
<_CoreClrBuildArg Condition="'$(Configuration)' == 'Release'" Include="-stripsymbols" /> | ||
<_CoreClrBuildArg Condition="'$(OfficialBuildId)' == ''" Include="-officialbuildid=$(OfficialBuildId)" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<_CoreClrBuildScript Condition="$([MSBuild]::IsOsPlatform(Windows))">build.cmd</_CoreClrBuildScript> | ||
<_CoreClrBuildScript Condition="!$([MSBuild]::IsOsPlatform(Windows))">build.sh</_CoreClrBuildScript> | ||
</PropertyGroup> | ||
|
||
<Exec Command=""$(MSBuildThisFileDirectory)$(_CoreClrBuildScript)" @(_CoreClrBuildArg->'%(Identity)',' ')" /> | ||
</Target> | ||
|
||
<Target Name="Restore" /> | ||
<Target Name="Test" /> | ||
<Target Name="Pack" /> | ||
</Project> |