diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2017-11-30 21:23:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-30 21:23:34 +0100 |
commit | be9b92a4a1ccc62b46ed53bddd83bde27829f3a9 (patch) | |
tree | 83f4e974dd2e8fac5dcad7515b30969c395b09f5 | |
parent | bf51f8ae864d044b2dc398d261a28af15c43818b (diff) | |
download | coreclr-be9b92a4a1ccc62b46ed53bddd83bde27829f3a9.tar.gz coreclr-be9b92a4a1ccc62b46ed53bddd83bde27829f3a9.tar.bz2 coreclr-be9b92a4a1ccc62b46ed53bddd83bde27829f3a9.zip |
Use ILAsm from buildtools, take 2 (#15300)
Since #15172 got rolled back in #15292, trying this again.
This time also deleting garbage `.permission` attributes from the failing tests. Permissions are not supported in CoreCLR.
Filed #15299 on some more ILAsm from CoreCLR frustrations.
-rw-r--r-- | tests/dir.props | 1 | ||||
-rw-r--r-- | tests/src/IL.targets | 37 | ||||
-rw-r--r-- | tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Except.il | 6 | ||||
-rw-r--r-- | tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltCatch.il | 5 | ||||
-rw-r--r-- | tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltFallThru.il | 5 | ||||
-rw-r--r-- | tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Finally.il | 5 | ||||
-rw-r--r-- | tests/src/dir.targets | 5 |
7 files changed, 6 insertions, 58 deletions
diff --git a/tests/dir.props b/tests/dir.props index abf2c689f1..ec1d57fa98 100644 --- a/tests/dir.props +++ b/tests/dir.props @@ -43,7 +43,6 @@ <_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 deleted file mode 100644 index d1075e53f7..0000000000 --- a/tests/src/IL.targets +++ /dev/null @@ -1,37 +0,0 @@ -<?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/baseservices/exceptions/regressions/V1/SEH/asm/Except.il b/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Except.il index 1e481a350d..78530d0ce6 100644 --- a/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Except.il +++ b/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Except.il @@ -14,11 +14,7 @@ .ver 4:0:0:0 } -.assembly Except.exe{ - //This byte field requests that this assembly not be verified at run time and corresponds to this C# declaration: - //[assembly:System.Security.Permissions.SecurityPermissionAttribute( [mscorlib]System.Security.Permissions.SecurityAction.RequestMinimum, Flags=System.Security.Permissions.SecurityPermissionFlag.SkipVerification )] - .permission reqmin ['mscorlib']System.Security.Permissions.SecurityPermissionAttribute ( "SkipVerification" = true ) -} +.assembly Except.exe{} .class Except { diff --git a/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltCatch.il b/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltCatch.il index f248a93fb7..0cffb2bd13 100644 --- a/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltCatch.il +++ b/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltCatch.il @@ -16,10 +16,7 @@ .ver 4:0:0:0 } -.assembly FiltCatch.exe{ - //This byte field requests that this assembly not be verified at run time and corresponds to this C# declaration: - //[assembly:System.Security.Permissions.SecurityPermissionAttribute( [mscorlib]System.Security.Permissions.SecurityAction.RequestMinimum, Flags=System.Security.Permissions.SecurityPermissionFlag.SkipVerification )] - .permission reqmin ['mscorlib']System.Security.Permissions.SecurityPermissionAttribute ( "SkipVerification" = true )} +.assembly FiltCatch.exe{} .class FiltCatch { diff --git a/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltFallThru.il b/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltFallThru.il index 4168fcd40b..57f32f00e0 100644 --- a/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltFallThru.il +++ b/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/FiltFallThru.il @@ -16,10 +16,7 @@ .ver 4:0:0:0 } -.assembly FiltFallThru{ -//This byte field requests that this assembly not be verified at run time and corresponds to this C# declaration: - //[assembly:System.Security.Permissions.SecurityPermissionAttribute( [mscorlib]System.Security.Permissions.SecurityAction.RequestMinimum, Flags=System.Security.Permissions.SecurityPermissionFlag.SkipVerification )] - .permission reqmin ['mscorlib']System.Security.Permissions.SecurityPermissionAttribute ( "SkipVerification" = true )} +.assembly FiltFallThru{} .class FiltFallThru { diff --git a/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Finally.il b/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Finally.il index 06d1338a8c..30b31e5100 100644 --- a/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Finally.il +++ b/tests/src/baseservices/exceptions/regressions/V1/SEH/asm/Finally.il @@ -14,10 +14,7 @@ .ver 4:0:0:0 } -.assembly Finally.exe{ -//This byte field requests that this assembly not be verified at run time and corresponds to this C# declaration: - //[assembly:System.Security.Permissions.SecurityPermissionAttribute( [mscorlib]System.Security.Permissions.SecurityAction.RequestMinimum, Flags=System.Security.Permissions.SecurityPermissionFlag.SkipVerification )] - .permission reqmin ['mscorlib']System.Security.Permissions.SecurityPermissionAttribute ( "SkipVerification" = true )} +.assembly Finally.exe{} .class Finally { diff --git a/tests/src/dir.targets b/tests/src/dir.targets index 4aa925fbda..e6845e0fd1 100644 --- a/tests/src/dir.targets +++ b/tests/src/dir.targets @@ -106,10 +106,9 @@ <PropertyGroup Condition="'$(ProjectLanguage)' == ''"> <ProjectLanguage Condition="'$(MSBuildProjectExtension)' == '.ilproj' OR '$(Language)' == 'IL'">IL</ProjectLanguage> <ProjectLanguage Condition="'$(MSBuildProjectExtension)' == '.csproj' OR '$(Language)' == 'C#' OR '$(ProjectLanguage)'==''">CSharp</ProjectLanguage> - </PropertyGroup> - - <Import Project="$(ProjectDir)src\IL.targets" Condition="'$(ProjectLanguage)' == 'IL' And '$(CLRTestPriority)' <= '$(CLRTestPriorityToBuild)'" /> + <SkipImportILTargets Condition="'$(CLRTestPriority)' > '$(CLRTestPriorityToBuild)'">true</SkipImportILTargets> + </PropertyGroup> <Import Project="CLRTest.Execute.targets" /> <Target Name="CreateExecuteScript" |