|
|
@ -79,6 +79,13 @@ let issues_fields_symbols =
|
|
|
|
|
|
|
|
|
|
|
|
type os_type = Unix | Win32 | Cygwin
|
|
|
|
type os_type = Unix | Win32 | Cygwin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type compilation_database_dependencies =
|
|
|
|
|
|
|
|
| Deps of int option
|
|
|
|
|
|
|
|
(* get the compilation database of the dependencies up to depth n
|
|
|
|
|
|
|
|
by [Deps (Some n)], or all by [Deps None] *)
|
|
|
|
|
|
|
|
| NoDeps
|
|
|
|
|
|
|
|
[@@deriving compare]
|
|
|
|
|
|
|
|
|
|
|
|
(** Constant configuration values *)
|
|
|
|
(** Constant configuration values *)
|
|
|
|
|
|
|
|
|
|
|
|
let anonymous_block_num_sep = "______"
|
|
|
|
let anonymous_block_num_sep = "______"
|
|
|
@ -725,11 +732,17 @@ and buck_build_args =
|
|
|
|
~in_help:CLOpt.([(Capture, manual_buck_flavors)])
|
|
|
|
~in_help:CLOpt.([(Capture, manual_buck_flavors)])
|
|
|
|
"Pass values as command-line arguments to invocations of $(i,`buck build`)"
|
|
|
|
"Pass values as command-line arguments to invocations of $(i,`buck build`)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
and buck_compilation_database_depth =
|
|
|
|
|
|
|
|
CLOpt.mk_int_opt ~long:"buck-compilation-database-depth"
|
|
|
|
|
|
|
|
~in_help:CLOpt.([(Capture, manual_buck_compilation_db)])
|
|
|
|
|
|
|
|
"Depth of dependencies used by the $(b,--buck-compilation-database deps) option. By default, all recursive dependencies are captured."
|
|
|
|
|
|
|
|
~meta:"int"
|
|
|
|
|
|
|
|
|
|
|
|
and buck_compilation_database =
|
|
|
|
and buck_compilation_database =
|
|
|
|
CLOpt.mk_symbol_opt ~long:"buck-compilation-database" ~deprecated:["-use-compilation-database"]
|
|
|
|
CLOpt.mk_symbol_opt ~long:"buck-compilation-database" ~deprecated:["-use-compilation-database"]
|
|
|
|
~in_help:CLOpt.([(Capture, manual_buck_compilation_db)])
|
|
|
|
~in_help:CLOpt.([(Capture, manual_buck_compilation_db)])
|
|
|
|
"Buck integration using the compilation database, with or without dependencies."
|
|
|
|
"Buck integration using the compilation database, with or without dependencies."
|
|
|
|
~symbols:[("deps", `Deps); ("no-deps", `NoDeps)]
|
|
|
|
~symbols:[("no-deps", `NoDeps); ("deps", `DepsTmp)]
|
|
|
|
|
|
|
|
|
|
|
|
and buck_out =
|
|
|
|
and buck_out =
|
|
|
|
CLOpt.mk_path_opt ~long:"buck-out"
|
|
|
|
CLOpt.mk_path_opt ~long:"buck-out"
|
|
|
@ -1878,7 +1891,14 @@ and buck_build_args = !buck_build_args
|
|
|
|
|
|
|
|
|
|
|
|
and buck_cache_mode = !buck && not !debug
|
|
|
|
and buck_cache_mode = !buck && not !debug
|
|
|
|
|
|
|
|
|
|
|
|
and buck_compilation_database = !buck_compilation_database
|
|
|
|
and buck_compilation_database =
|
|
|
|
|
|
|
|
match !buck_compilation_database with
|
|
|
|
|
|
|
|
| Some `DepsTmp
|
|
|
|
|
|
|
|
-> Some (Deps !buck_compilation_database_depth)
|
|
|
|
|
|
|
|
| Some `NoDeps
|
|
|
|
|
|
|
|
-> Some NoDeps
|
|
|
|
|
|
|
|
| None
|
|
|
|
|
|
|
|
-> None
|
|
|
|
|
|
|
|
|
|
|
|
and buck_out = !buck_out
|
|
|
|
and buck_out = !buck_out
|
|
|
|
|
|
|
|
|
|
|
|