diff options
author | Gecko Backout <gecko-backout@mozilla.org> | 2018-03-02 12:47:51 +0000 |
---|---|---|
committer | moz-servo-sync <developer-services+moz-servo-sync@mozilla.org> | 2018-03-02 12:47:51 +0000 |
commit | 59cb14b71b68a1bd5292621c543155e7ec990045 (patch) | |
tree | 88394378a077b4f3cdc811d34b3e85de7d66b275 /components/style/build_gecko.rs | |
parent | 0172989b6fc1304b102920b8b540273dc58fa9af (diff) | |
download | servo-59cb14b71b68a1bd5292621c543155e7ec990045.tar.gz servo-59cb14b71b68a1bd5292621c543155e7ec990045.zip |
Backed out changeset 39a71f4c9d94 for build bustages at make[4]: *** [force-cargo-library-build] Error 101 on a CLOSED TREE
Backs out https://github.com/servo/servo/pull/20160
Diffstat (limited to 'components/style/build_gecko.rs')
-rw-r--r-- | components/style/build_gecko.rs | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index bf6ded11c34..7415bff8a26 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -204,25 +204,15 @@ mod bindings { // Disable rust unions, because we replace some types inside of // them. + // + // FIXME(emilio, bug 1432153): Make the bindings rustfmt'd on + // automation. let mut builder = Builder::default() + .rustfmt_bindings(false) .rust_target(RustTarget::Stable_1_0); - let rustfmt_path = env::var_os("MOZ_AUTOMATION").and_then(|_| { - env::var_os("TOOLTOOL_DIR") - }).map(PathBuf::from); - - builder = match rustfmt_path { - Some(path) => { - builder.with_rustfmt(path.join("rustc").join("bin").join("rustfmt")) - }, - None => { - builder.rustfmt_bindings(env::var_os("STYLO_RUSTFMT_BINDINGS").is_some()) - } - }; - for dir in SEARCH_PATHS.iter() { builder = builder.clang_arg("-I").clang_arg(dir.to_str().unwrap()); } - builder = builder.include(add_include("mozilla-config.h")); if env::var("CARGO_FEATURE_GECKO_DEBUG").is_ok() { |