propagate targetArch to crossgen2
This commit is contained in:
parent
88b8fc6b33
commit
ed9c92df3a
2 changed files with 10 additions and 10 deletions
|
@ -27,7 +27,7 @@ namespace Microsoft.DotNet.Build.Tasks
|
|||
public string DestinationPath { get; set; }
|
||||
|
||||
[Required]
|
||||
public string JITPath { get; set; }
|
||||
public string Architecture { get; set; }
|
||||
|
||||
public string CrossgenPath { get; set; }
|
||||
|
||||
|
@ -138,7 +138,12 @@ namespace Microsoft.DotNet.Build.Tasks
|
|||
|
||||
protected override string GenerateCommandLineCommands()
|
||||
{
|
||||
return $"{GetInPath()} {GetOutPath()} {GetPlatformAssemblyPaths()} {GetCreateSymbols()}";
|
||||
return $"{GetInPath()} {GetOutPath()} {GetArchitecture()} {GetPlatformAssemblyPaths()} {GetCreateSymbols()}";
|
||||
}
|
||||
|
||||
private string GetArchitecture()
|
||||
{
|
||||
return $"--targetarch {Architecture}";
|
||||
}
|
||||
|
||||
private string GetCreateSymbols()
|
||||
|
@ -192,11 +197,6 @@ namespace Microsoft.DotNet.Build.Tasks
|
|||
return platformAssemblyPaths;
|
||||
}
|
||||
|
||||
private string GetJitPath()
|
||||
{
|
||||
return $"-JITPath {JITPath}";
|
||||
}
|
||||
|
||||
private string GetMissingDependenciesOk()
|
||||
{
|
||||
return "-MissingDependenciesOK";
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
<Crossgen
|
||||
SourceAssembly="%(RoslynTargets.FullPath)"
|
||||
DestinationPath="%(RoslynTargets.FullPath)"
|
||||
JITPath="$(LibCLRJitPath)"
|
||||
Architecture="$(Architecture)"
|
||||
CrossgenPath="$(CrossgenPath)"
|
||||
ReadyToRun="True"
|
||||
CreateSymbols="$(CreateCrossgenSymbols)"
|
||||
|
@ -133,7 +133,7 @@
|
|||
<Crossgen
|
||||
SourceAssembly="%(FSharpTargets.FullPath)"
|
||||
DestinationPath="%(FSharpTargets.FullPath)"
|
||||
JITPath="$(LibCLRJitPath)"
|
||||
Architecture="$(Architecture)"
|
||||
CrossgenPath="$(CrossgenPath)"
|
||||
ReadyToRun="True"
|
||||
CreateSymbols="$(CreateCrossgenSymbols)"
|
||||
|
@ -143,7 +143,7 @@
|
|||
<Crossgen
|
||||
SourceAssembly="%(RemainingTargets.FullPath)"
|
||||
DestinationPath="%(RemainingTargets.FullPath)"
|
||||
JITPath="$(LibCLRJitPath)"
|
||||
Architecture="$(Architecture)"
|
||||
CrossgenPath="$(CrossgenPath)"
|
||||
ReadyToRun="True"
|
||||
CreateSymbols="$(CreateCrossgenSymbols)"
|
||||
|
|
Loading…
Add table
Reference in a new issue