diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-09-27 10:11:39 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-09-27 10:11:39 -0700 |
commit | 8e8d3f3d6f01046782529f853032daca2ab1976e (patch) | |
tree | 457645d9095c2af0c656fe55746530a5b44d8ef3 /mbld/deps.myr | |
parent | 35c02af69dcc70507e639209eeea181e8e088366 (diff) | |
download | mc-8e8d3f3d6f01046782529f853032daca2ab1976e.tar.gz |
Bump ABI version. Also, improve errors about it.
We now say which version we got, which version we expected,
and only warn in mbld. This means that we can probably build
newer usefiles with older mblds.
Diffstat (limited to 'mbld/deps.myr')
-rw-r--r-- | mbld/deps.myr | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr index d48ec18..17dfb79 100644 --- a/mbld/deps.myr +++ b/mbld/deps.myr @@ -14,7 +14,8 @@ pkg bld = var usepat : regex.regex# ;; -const Abiversion = 6 +const Abiversion = 7 + var usepat : regex.regex# type dep = union @@ -238,9 +239,9 @@ const scrapelibs = {dg, lib, incs | `std.Some Abiversion: /* nothing: version matches. */ | `std.Some v: if v < Abiversion - std.fput(1, "library {}: warning: old abi version\n", lib) + std.fput(1, "library {}: warning: old abi version {}\n", lib, v) else - std.fatal("library {}: usefile version unknown\n", lib) + std.fput(1, "library {}: usefile version {} unknown\n", lib, v) ;; | `std.None: std.fatal("library {}: corrutpt or invalid usefile\n", lib) ;; |