[sledge][buck] Use same mode for buck root as buck build

Summary: Attempt to avoid churning the build mode, for better caching.

Reviewed By: ngorogiannis

Differential Revision: D23459515

fbshipit-source-id: ea434fb13
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent 7fd5dc49be
commit ca02dbd4aa

@ -26,7 +26,9 @@ let cwd = Unix.getcwd ()
(* query buck for root *)
let buck_root =
let open Process in
lazy (String.strip (eval (run "buck" ["root"] |- read_all)))
lazy
(String.strip
(eval (run "buck" ["root"; "@mode/" ^ Lazy.force mode] |- read_all)))
(* use buck root for working directory *)
let context () =

Loading…
Cancel
Save