Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

No description provided.

@MichalStrehovsky MichalStrehovsky added the area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation label Aug 26, 2020
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

{
public static partial class Environment
{
#pragma warning disable CS8763 // A method marked [DoesNotReturn] should not return.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed when ExitProcess is marked DoesNotReturn? Sounds like a bug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does sound like a bug, but I couldn't quickly make an isolated repro in VS with shipping Roslyn and my level of caring for nullable analysis is next to zero so I didn't spend more time on it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, it is weird that it works everywhere else. Wasn't it just an oversight?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to submit it without this suppression, but I'm pretty sure I was getting build failure without this suppression and the DllImport is annotated.

@MichalStrehovsky
Copy link
Member Author

MichalStrehovsky commented Aug 27, 2020

'F:\workspace\_work\1\s\artifacts\obj\coreclr\nativeaot\System.Private.CoreLib\..\..\Windows_NT.x64.Debug\src\nativeaot\Runtime\Full\AsmOffsets.cs' could not be found. [F:\workspace\_work\1\s\src\coreclr\src\nativeaot\System.Private.CoreLib\System.Private.CoreLib.csproj]

Of course it cannot, because the runtime was built into "Windows_NT.x64.Checked", but libs apparently don't know what "checked" is.

@jkotas What do you think - should we kill off the Checked builds in the CI in lieu of Debug? Debug is plenty fast and I never enjoyed debugging optimized code anyway (I don't remember if I ever built CoreCLR as checked either).

Edit: Seems like I got it working.

@MichalStrehovsky MichalStrehovsky merged commit 3c109fb into dotnet:NativeAOT Aug 28, 2020
@MichalStrehovsky MichalStrehovsky deleted the apicompat branch August 28, 2020 10:09
@MichalStrehovsky MichalStrehovsky mentioned this pull request Sep 19, 2020
6 tasks
scalablecory pushed a commit that referenced this pull request Sep 22, 2020
Now the PowerShell scripts can optionally convert the collected logs to text automatically.
MichalStrehovsky pushed a commit to MichalStrehovsky/runtimelab that referenced this pull request Oct 15, 2021
They should be in artifacts/testcases (and not in artifacts/bin/testcases).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants