Skip to content

ghc-toolchain: Backwards compatibility for target descriptions

I realize now that we don't have a compatibility story for target description files yet. Scenario:

  1. Configure a toolchain with ghc-toolchain 0.1
  2. Update compiler/ghc-toolchain
  3. Read an existing toolchain using a program linked against ghc-toolchain 0.2, which has additional fields.
  4. The existing toolchain will fail to parse.

We already read from a serialized version of the datatype, so I suppose we could either assume some defaults, or ask to reconfigure.

Edited by Rodrigo Mesquita
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information