From 4295bef063ed1625f3d10088e1094d394473bf35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 11 Mar 2018 20:14:06 +0100 Subject: [PATCH] style: Make the generated bindings really be formatted. TOOLTOOL_DIR isn't passed down to the rust scripts it seems, per: https://treeherder.mozilla.org/#/jobs?repo=try&revision=46854db239166ab3a43d36c7a954debb56968eab --- components/style/build_gecko.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index bf6ded11c34..eeb15c8e718 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -207,7 +207,7 @@ mod bindings { let mut builder = Builder::default() .rust_target(RustTarget::Stable_1_0); let rustfmt_path = env::var_os("MOZ_AUTOMATION").and_then(|_| { - env::var_os("TOOLTOOL_DIR") + env::var_os("TOOLTOOL_DIR").or_else(|| env::var_os("MOZ_SRC")) }).map(PathBuf::from); builder = match rustfmt_path {