Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Use BuildManagedTools argument instead of environment variable, remov…
Browse files Browse the repository at this point in the history
…ed unneeded flags
  • Loading branch information
acmyu committed Jul 9, 2018
1 parent a5fbfa5 commit a735813
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
4 changes: 4 additions & 0 deletions build.cmd
Expand Up @@ -594,6 +594,10 @@ if %__BuildCoreLib% EQU 1 (
set __ExtraBuildArgs=!__ExtraBuildArgs! -SkipSOS=true
)

if "%__BuildManagedTools%" == "1" (
set __ExtraBuildArgs=!__ExtraBuildArgs! -BuildManagedTools=true
)

if /i "%__BuildArch%" == "arm64" (
set __nugetBuildArgs=-buildNugetPackage=false
) else if "%__SkipNugetPackage%" == "1" (
Expand Down
1 change: 1 addition & 0 deletions build.proj
Expand Up @@ -24,6 +24,7 @@
<Delete Files="$(BinDir)SOS.NETCore.*" />
<Delete Files="$(BinDir)mscorlib.*" />
<Delete Files="$(BinDir)System.Private.CoreLib.*" />
<Delete Files="$(BinDir)netcoreapp2.0/R2RDump.*" />
</Target>

<!--
Expand Down
6 changes: 6 additions & 0 deletions config.json
Expand Up @@ -312,6 +312,12 @@
"values": [ true, false ],
"defaultValue": false
},
"BuildManagedTools": {
"description": "",
"valueType": "property",
"values": [ true, false ],
"defaultValue": true
},
"SignType": {
"description": "Sets the SignType.",
"valueType": "property",
Expand Down
4 changes: 2 additions & 2 deletions src/build.proj
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<Project Condition="$(SkipSOS) != 'true'" Include="ToolBox\SOS\NETCore\SOS.NETCore.csproj" />
<Project Include="System.Private.CoreLib\System.Private.CoreLib.csproj" />
<Project Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(__BuildManagedTools)' == '1'" Include="tools/r2rdump/R2RDump.csproj" />
<Project Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(BuildManagedTools)' == 'true'" Include="tools/r2rdump/R2RDump.csproj" />
</ItemGroup>

<Import Project="..\dir.targets" />
Expand All @@ -27,7 +27,7 @@
<CoreLibPDBPath>$(BinDir)System.Private.CoreLib.pdb</CoreLibPDBPath>
</PropertyGroup>

<Target Name="RestoreR2RDumpPackages" Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(__BuildManagedTools)' == '1'" BeforeTargets="Build">
<Target Name="RestoreR2RDumpPackages" Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(BuildManagedTools)' == 'true'" BeforeTargets="Build">
<Exec Command="$(DotnetRestoreCommand) tools/r2rdump/R2RDump.csproj"
StandardOutputImportance="Low" />
</Target>
Expand Down
7 changes: 2 additions & 5 deletions src/tools/r2rdump/R2RDump.csproj
Expand Up @@ -7,11 +7,8 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputType>Exe</OutputType>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<NoStdLib>true</NoStdLib>
<NoCompilerStandardLib>true</NoCompilerStandardLib>
<IsDotNetFrameworkProductAssembly>true</IsDotNetFrameworkProductAssembly>
<AssemblyKey>Open</AssemblyKey>
<ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
<AssemblyKey>Open</AssemblyKey>
<IsDotNetFrameworkProductAssembly>true</IsDotNetFrameworkProductAssembly>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit a735813

Please sign in to comment.