forked from dotnet/runtimelab
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make libraries build with Native AOT corelib (dotnet#70)
Also fixes ApiCompat violations in the process.
- Loading branch information
1 parent
1ac46af
commit 3c109fb
Showing
36 changed files
with
434 additions
and
77 deletions.
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
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
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
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
59 changes: 59 additions & 0 deletions
59
src/coreclr/src/nativeaot/System.Private.CoreLib/src/System/ArgIterator.cs
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,59 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Runtime.InteropServices; | ||
|
||
namespace System | ||
{ | ||
[StructLayout(LayoutKind.Sequential)] | ||
public ref struct ArgIterator | ||
{ | ||
public ArgIterator(RuntimeArgumentHandle arglist) | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
|
||
[CLSCompliant(false)] | ||
public unsafe ArgIterator(RuntimeArgumentHandle arglist, void* ptr) | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
|
||
public void End() | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
|
||
public override bool Equals(object? o) | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
|
||
[CLSCompliant(false)] | ||
public System.TypedReference GetNextArg() | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
|
||
[CLSCompliant(false)] | ||
public System.TypedReference GetNextArg(System.RuntimeTypeHandle rth) | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
|
||
public unsafe System.RuntimeTypeHandle GetNextArgType() | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
|
||
public int GetRemainingCount() | ||
{ | ||
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); | ||
} | ||
} | ||
} |
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
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
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
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
2 changes: 2 additions & 0 deletions
2
src/coreclr/src/nativeaot/System.Private.CoreLib/src/System/Environment.CoreRT.Win32.cs
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace System | ||
{ | ||
public static partial class Environment | ||
{ | ||
[DoesNotReturn] | ||
private static void ExitRaw() => Interop.Kernel32.ExitProcess(s_latchedExitCode); | ||
} | ||
} |
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
Oops, something went wrong.