[project @ 1998-02-25 19:48:54 by sof]
authorsof <unknown>
Wed, 25 Feb 1998 19:49:13 +0000 (19:49 +0000)
committersof <unknown>
Wed, 25 Feb 1998 19:49:13 +0000 (19:49 +0000)
commit33362962fa2c0cccee533b6cbe36f5cd2b049c8a
tree0029e371455aaaba42593907a20a8ecb03e776b5
parent6af6951bef8ba4826103a7170a82d3c70bb16805
[project @ 1998-02-25 19:48:54 by sof]
Interface file version checking support. Added a compiler version field
to the interface file header. The format is now

  _interface_ <IfaceName> <ModuleVersion> <CompilerVersion>

where the compiler version follow the value of $(ProjectVersionInt).
Any mismatch in version numbers causes the renamer to give up.

A compiler version number of 0 means turn off version checking (used
by PrelGHC.hi to avoid having to update every time we release.)

.hi-boot files are treated specially, the absence of a compiler
version number in the header is taken to mean that there was a `0'.
Need to do this since hsc's .hi-boot files have to also be useable
by versions of the compiler that don't grok version info in interface
files (e.g., ghc-2.10.)
ghc/compiler/Makefile
ghc/compiler/basicTypes/SrcLoc.lhs
ghc/compiler/main/MkIface.lhs
ghc/compiler/reader/Lex.lhs
ghc/compiler/rename/ParseIface.y
ghc/compiler/rename/Rename.lhs
ghc/driver/ghc-iface.lprl
ghc/lib/std/PrelGHC.hi-boot