@ -324,11 +324,13 @@ let initial_command =
match InferCommand . of_exe_name exe_basename with Some _ as command -> command | None -> None
match InferCommand . of_exe_name exe_basename with Some _ as command -> command | None -> None
let bin_dir =
let infer_binary =
(* Resolve symlinks to get to the real executable, which is located in [bin_dir]. *)
(* Resolve symlinks to get to the real executable, which is located in [bin_dir]. *)
Filename. dirname ( Utils. realpath Sys . executable_name )
Utils. realpath Sys . executable_name
let bin_dir = Filename . dirname infer_binary
let fcp_dir =
let fcp_dir =
bin_dir ^/ Filename . parent_dir_name ^/ Filename . parent_dir_name ^/ " facebook-clang-plugins "
bin_dir ^/ Filename . parent_dir_name ^/ Filename . parent_dir_name ^/ " facebook-clang-plugins "
@ -786,6 +788,13 @@ and buck_build_args_no_inline_rev =
args starting with '@' . Only valid for $ ( b , - - buck - clang ) . "
args starting with '@' . Only valid for $ ( b , - - buck - clang ) . "
and buck_clang_use_toolchain_config =
CLOpt . mk_bool ~ long : " buck-clang-use-toolchain-config " ~ default : false
~ in_help : InferCommand . [ ( Capture , manual_buck ) ]
" Suppress setting buck config values for the infer binary and other values in the \
buck - clang - flavor integration and instead rely on buck toolchain configuration options . "
and buck_compilation_database_depth =
and buck_compilation_database_depth =
CLOpt . mk_int_opt ~ long : " buck-compilation-database-depth "
CLOpt . mk_int_opt ~ long : " buck-compilation-database-depth "
~ in_help : InferCommand . [ ( Capture , manual_buck ) ]
~ in_help : InferCommand . [ ( Capture , manual_buck ) ]
@ -2914,6 +2923,8 @@ and buck_build_args_no_inline = RevList.to_list !buck_build_args_no_inline_rev
and buck_cache_mode = ( ! buck | | ! genrule_mode ) && not ! debug
and buck_cache_mode = ( ! buck | | ! genrule_mode ) && not ! debug
and buck_clang_use_toolchain_config = ! buck_clang_use_toolchain_config
and buck_java_heap_size_gb = ! buck_java_heap_size_gb
and buck_java_heap_size_gb = ! buck_java_heap_size_gb
and buck_java_flavor_suppress_config = ! buck_java_flavor_suppress_config
and buck_java_flavor_suppress_config = ! buck_java_flavor_suppress_config