feat(exec): spill long command lines into response files

This commit is contained in:
milner committed 2022-07-20 17:50:41 +00:00
1 parent b8d3b7ebb1
commit 7d6aaeb5eb
4 files changed
+53 -5

No files matched your search

+6 -2
View File
@@ -8,13 +8,17 @@ type node = {
depfile : string option;
ords : string list;
pool : string;
(* where to spill the arguments when the command line will not fit; only set
for commands meowc composes itself, since an arbitrary program from a rule
need not understand @file *)
rsp : string option;
mutable deps : int list;
}
type t = { nodes : node array; by_output : (string, int) Hashtbl.t }
let make ~id ~tag ~label ~cmd ~outs ~ins ?depfile ?(ords = []) ?(pool = "default") () =
{ id; tag; label; cmd; outs; ins; depfile; ords; pool; deps = [] }
let make ~id ~tag ~label ~cmd ~outs ~ins ?depfile ?(ords = []) ?(pool = "default") ?rsp () =
{ id; tag; label; cmd; outs; ins; depfile; ords; pool; rsp; deps = [] }
let build specs =
let nodes = Array.of_list specs in