Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Updating Microsoft.NETCore.Platforms/runtime.json with corert RIDs #14142

Merged
merged 2 commits into from
Dec 5, 2016

Conversation

SedarG
Copy link
Contributor

@SedarG SedarG commented Nov 30, 2016

Adding CoreRT RIDs
@jkotas , @joshfree @weshaggard @ericstj , PTAL.

/cc @dotnet/corert-contrib

@jkotas
Copy link
Member

jkotas commented Nov 30, 2016

Looks fine to me, but I do not know enough about the RID business to signoff on the change.

@davidfowl
Copy link
Member

Are there any concrete examples of what rid specific assets for corert packages?

@@ -446,6 +446,264 @@
"alpine.3.4.3-x64": {
"#import": [ "alpine.3.4.3", "alpine.3-x64" ]
},

//************************************************
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure what if anything will break but in general comments aren't support in json files so you should remove this.

Copy link
Contributor

Choose a reason for hiding this comment

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

GitHub certainly doesn't like it 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do

//******************CORERT************************
//************************************************

"corert": {
Copy link
Member

Choose a reason for hiding this comment

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

Is it safe to assume you copied the aot graph?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

win*-corert looks like aot. There's but one difference. There is no win-corert, it starts with win7-corert. other than that it's a copy of the aot graph.

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me after you remove the comment section. Also I would like @ericstj to take a look before merging.

@SedarG
Copy link
Contributor Author

SedarG commented Dec 5, 2016

Are there any concrete examples of what rid specific assets for corert packages

@davidfowl, anything that's being built against System.Private.Corelib is a candidate. Does that answer your question?

@davidfowl
Copy link
Member

davidfowl commented Dec 5, 2016

@SedarG no, I meant concrete, as in, do we have a specific example today that uses these RIDs. System.Runtime.* and friends I assume will have these right?

@SedarG
Copy link
Contributor Author

SedarG commented Dec 5, 2016

@davidfowl, runtime.win-corert.netcoreapp1.2.Microsoft.TargetingPack.Private.CoreRT has win-CoreRT assets. And I'm working on building the CoreFX libraries against this targeting pack, which is why I needed this change in.

@joshfree
Copy link
Member

joshfree commented Dec 5, 2016

LGTM modulo prior /****/ comment feedback

- Previously I had excluded some RIDs from the corert graph because they
  weren't 'supported' platforms for corert. But I think runtime.json is
  not the right place to enforce what's supported and what's not.
  Completing the graph helps maintaining runtime.json because it now
  follows a 'pattern'.
- I updated the ordering of the nodes on win*-corert and that's where it
  differs from win*-aot. Unlike AOT counterparts, I'm always prioritizing
  CoreRT RIDS over non-CoreRT RIDs.
- Also realized that the architecture specific chains were broken on
  non-windows CoreRT RIDS. I fixed that in this change too.
Copy link
Member

@ericstj ericstj left a comment

Choose a reason for hiding this comment

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

The new RIDs and the pattern look correct, but I think you should look into generating this thing so that its maintainable. Previously the file was more-or-less equivalent with a data model of the same. Now that we're applying a generic cross-product of "corert" to a set of RIDs it seems a lot more prone to error.

@@ -446,6 +446,378 @@
"alpine.3.4.3-x64": {
"#import": [ "alpine.3.4.3", "alpine.3-x64" ]
},

Copy link
Member

Choose a reason for hiding this comment

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

We should think about generating this file during our build rather than all of this duplication. This seems way too prone to type-o's/inconsistencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. I'll file an issue to track auto generating runtime.json.

@SedarG SedarG merged commit 761fcf7 into dotnet:master Dec 5, 2016
@karelz karelz modified the milestone: 1.2.0 Dec 6, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…otnet/corefx#14142)

* Updating Microsoft.NETCore.Platforms/runtime.json with CoreRT RIDs

* Further changes to runtime.json:
- Previously I had excluded some RIDs from the corert graph because they
  weren't 'supported' platforms for corert. But I think runtime.json is
  not the right place to enforce what's supported and what's not.
  Completing the graph helps maintaining runtime.json because it now
  follows a 'pattern'.
- I updated the ordering of the nodes on win*-corert and that's where it
  differs from win*-aot. Unlike AOT counterparts, I'm always prioritizing
  CoreRT RIDS over non-CoreRT RIDs.
- Also realized that the architecture specific chains were broken on
  non-windows CoreRT RIDS. I fixed that in this change too.


Commit migrated from dotnet/corefx@761fcf7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants