forked from dotnet/coreclr
-
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.
This change is comprised of two parts: - A new property in dir.targets, ProjectLanguage, that allows test projects to specify the language in which they are written. If unset, this property is inferred from the extension, defaulting to C# if all else fails. The only lanugages currently supported are C# and IL, but it should be easy to support others (e.g. Visual Basic) if necessary. - A copy of IL.targets from Microsoft.DotNet.BuildTools. This should be removed once CoreCLR has been moved to a version of the build tools package that contains IL.targets; this work is tracked by https://github.com/dotnet/coreclr/issues/1122. This work is necessary to support a large number of JIT tests that are written in IL and have yet to be ported.
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Required by Microsoft.Common.targets --> | ||
<Target Name="CreateManifestResourceNames" Condition="'@(EmbeddedResource)' != ''" /> | ||
|
||
<Target Name="CoreCompile" | ||
Inputs="$(MSBuildAllProjects); | ||
@(Compile)" | ||
Outputs="@(IntermediateAssembly);" | ||
Returns="" | ||
DependsOnTargets="$(CoreCompileDependsOn)"> | ||
<PropertyGroup> | ||
<_OutputTypeArgument Condition="'$(OutputType)' == 'Library'">/DLL</_OutputTypeArgument> | ||
<_OutputTypeArgument Condition="'$(OutputType)' == 'Exe'">/EXE</_OutputTypeArgument> | ||
|
||
<_KeyFileArgument Condition="'$(KeyOriginatorFile)' != ''">/KEY=$(KeyOriginatorFile)</_KeyFileArgument> | ||
</PropertyGroup> | ||
|
||
<Exec Command="ilasm /QUIET $(_OutputTypeArgument) /OUTPUT=@(IntermediateAssembly) $(_KeyFileArgument) @(Compile)"> | ||
<Output TaskParameter="ExitCode" PropertyName="_ILAsmExitCode" /> | ||
</Exec> | ||
<Error Text="ILAsm failed" Condition="'$(_ILAsmExitCode)' != '0'" /> | ||
</Target> | ||
|
||
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" /> | ||
|
||
</Project> |
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