[ocamlbuild] Fix a bug in stamp (add stamp in prods list).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8594 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
ed05b821de
commit
2b906d0efa
|
@ -310,10 +310,11 @@ let gen_rule name ?(tags=[]) ?(prods=[]) ?(deps=[]) ?prod ?dep ?stamp ?(insert =
|
|||
end xs init
|
||||
in
|
||||
if prods = [] && prod = None && stamp = None then raise (Exit_rule_error "Can't make a rule that produce nothing");
|
||||
let stamp =
|
||||
let stamp, prods =
|
||||
match stamp with
|
||||
| None -> None
|
||||
| Some stamp -> Some (Resource.import_pattern stamp)
|
||||
| None -> None, prods
|
||||
| Some stamp ->
|
||||
Some (Resource.import_pattern stamp), stamp :: prods
|
||||
in
|
||||
let prods = res_add Resource.import_pattern prods prod in
|
||||
add_rule insert
|
||||
|
|
Loading…
Reference in New Issue