diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2017-11-29 18:43:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 18:43:31 -0800 |
commit | 945de2f5b46b940cbfeaf87c1b23fc0f9b1c0b63 (patch) | |
tree | f5c3b365a429c2fe78e06a9d19208d69f04aee1b | |
parent | 3360765004c439e61456b2e15540bb740f7e19dc (diff) | |
parent | fc4f8053006d6e279a1bd632173af4550b6a195c (diff) | |
download | coreclr-945de2f5b46b940cbfeaf87c1b23fc0f9b1c0b63.tar.gz coreclr-945de2f5b46b940cbfeaf87c1b23fc0f9b1c0b63.tar.bz2 coreclr-945de2f5b46b940cbfeaf87c1b23fc0f9b1c0b63.zip |
Merge pull request #15292 from BruceForstall/Revert15172
Revert "Use ILAsm from buildtools (#15172)"
-rw-r--r-- | tests/dir.props | 1 | ||||
-rw-r--r-- | tests/src/IL.targets | 37 | ||||
-rw-r--r-- | tests/src/dir.targets | 5 |
3 files changed, 41 insertions, 2 deletions
diff --git a/tests/dir.props b/tests/dir.props index ec1d57fa98..abf2c689f1 100644 --- a/tests/dir.props +++ b/tests/dir.props @@ -43,6 +43,7 @@ <_TargetFrameworkDirectories Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(MSBuildThisFileDirectory)/Documentation</_TargetFrameworkDirectories> <_FullFrameworkReferenceAssemblyPaths Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(MSBuildThisFileDirectory)/Documentation</_FullFrameworkReferenceAssemblyPaths> <ExcludeSigningImport>true</ExcludeSigningImport> + <SkipImportILTargets>true</SkipImportILTargets> </PropertyGroup> <!-- Common properties --> diff --git a/tests/src/IL.targets b/tests/src/IL.targets new file mode 100644 index 0000000000..d1075e53f7 --- /dev/null +++ b/tests/src/IL.targets @@ -0,0 +1,37 @@ +<?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> + <_ShellKeyMarker Condition="'$(RunningOnUnix)' == 'true'">-</_ShellKeyMarker> <!-- Work around ilasm comandline parser bugs... --> + <_ShellKeyMarker Condition="'$(RunningOnUnix)' != 'true'">/</_ShellKeyMarker> + <_ilasm>ilasm</_ilasm> + <_ilasm Condition="'$(RunningOnUnix)' == 'true'">$(CoreCLRBinDir)ilasm</_ilasm> + <_OutputTypeArgument Condition="'$(OutputType)' == 'Library'">$(_ShellKeyMarker)DLL</_OutputTypeArgument> + <_OutputTypeArgument Condition="'$(OutputType)' == 'Exe'">$(_ShellKeyMarker)EXE</_OutputTypeArgument> + <_IlasmSwitches>-QUIET -NOLOGO</_IlasmSwitches> + <_IlasmSwitches Condition="'$(FoldIdenticalMethods)' == 'True'">$(_IlasmSwitches) -FOLD</_IlasmSwitches> + <_IlasmSwitches Condition="'$(SizeOfStackReserve)' != ''">$(_IlasmSwitches) -STACK=$(SizeOfStackReserve)</_IlasmSwitches> + <_IlasmSwitches Condition="'$(DebugType)' == 'Full'">$(_IlasmSwitches) -DEBUG</_IlasmSwitches> + <_IlasmSwitches Condition="'$(DebugType)' == 'Impl'">$(_IlasmSwitches) -DEBUG=IMPL</_IlasmSwitches> + <_IlasmSwitches Condition="'$(DebugType)' == 'PdbOnly'">$(_IlasmSwitches) -DEBUG=OPT</_IlasmSwitches> + <_IlasmSwitches Condition="'$(Optimize)' == 'True'">$(_IlasmSwitches) -OPTIMIZE</_IlasmSwitches> + </PropertyGroup> + + <Exec Command="$(_ilasm) $(_OutputTypeArgument) $(_ShellKeyMarker)OUTPUT=@(IntermediateAssembly) $(_IlasmSwitches) @(Compile)"> + <Output TaskParameter="ExitCode" PropertyName="_ILAsmExitCode" /> + </Exec> + <Error Text="ILAsm failed" Condition="'$(_ILAsmExitCode)' != '0'" /> + </Target> + + <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" /> + +</Project> diff --git a/tests/src/dir.targets b/tests/src/dir.targets index e6845e0fd1..4aa925fbda 100644 --- a/tests/src/dir.targets +++ b/tests/src/dir.targets @@ -106,9 +106,10 @@ <PropertyGroup Condition="'$(ProjectLanguage)' == ''"> <ProjectLanguage Condition="'$(MSBuildProjectExtension)' == '.ilproj' OR '$(Language)' == 'IL'">IL</ProjectLanguage> <ProjectLanguage Condition="'$(MSBuildProjectExtension)' == '.csproj' OR '$(Language)' == 'C#' OR '$(ProjectLanguage)'==''">CSharp</ProjectLanguage> - - <SkipImportILTargets Condition="'$(CLRTestPriority)' > '$(CLRTestPriorityToBuild)'">true</SkipImportILTargets> </PropertyGroup> + + <Import Project="$(ProjectDir)src\IL.targets" Condition="'$(ProjectLanguage)' == 'IL' And '$(CLRTestPriority)' <= '$(CLRTestPriorityToBuild)'" /> + <Import Project="CLRTest.Execute.targets" /> <Target Name="CreateExecuteScript" |