Fix bootstrap

This commit is contained in:
Jeremie Dimino 2017-05-07 20:53:40 +01:00 committed by Jeremie Dimino
parent 6d0c8198eb
commit 61f0f8fd0e
2 changed files with 28 additions and 1 deletions

View File

@ -265,6 +265,32 @@ module Jbuilder_re = struct
end end
end end
module Jbuilder_opam_file_format = struct
module OpamParserTypes = struct
type value =
| String of unit * string
| List of unit * value list
| Other
type opamfile_item =
| Variable of unit * string * value
| Other
type opamfile =
{ file_contents : opamfile_item list
; file_name : string
}
end
module OpamParser = struct
open OpamParserTypes
let file fn =
assert (fn = "jbuilder.opam");
{ file_contents = []
; file_name = fn
}
end
end
module Glob_lexer = struct module Glob_lexer = struct
let parse_string _ = failwith "globs are not available during bootstrap" let parse_string _ = failwith "globs are not available during bootstrap"
end end

View File

@ -160,7 +160,8 @@ let bootstrap () =
let main () = let main () =
let anon s = raise (Arg.Bad (Printf.sprintf "don't know what to do with %s\n" s)) in let anon s = raise (Arg.Bad (Printf.sprintf "don't know what to do with %s\n" s)) in
let subst () = let subst () =
Future.Scheduler.go (Watermarks.subst ~package:"jbuilder") Future.Scheduler.go (Watermarks.subst ~package:"jbuilder");
exit 0
in in
Arg.parse Arg.parse
[ "-j" , Set_int Clflags.concurrency, "JOBS concurrency" [ "-j" , Set_int Clflags.concurrency, "JOBS concurrency"