Add an "inherits" key or similar to JSON target specs

1e0403f
Opened by James Miller at 2019-03-16 15:18:13

Looking at #32818, most of the target spec used there is just copying the existing i686-pc-windows-msvc target settings. This seems a little unnecessary, especially if we add to the options in the spec. A key in the JSON that indicates an existing target to use as a base seems like it would be useful.

Potential names:

  • "inherits"
  • "extends"
  • "base"
  1. Would this require an RFC? Or is this something that just needs to be implemented?

    Mark Rousskov at 2016-11-06 03:54:49

  2. @eddyb I recall you mentioning that we wanted inheriting support (or had?); perhaps that's implemented today? I don't think so, but ... maybe?

    Mark Rousskov at 2017-05-15 21:28:15

  3. No idea. cc @rust-lang/compiler

    Eduard-Mihai Burtescu at 2017-05-15 21:29:58

  4. Triage: no changes.

    Steve Klabnik at 2019-03-16 15:18:13