Skip to content

Commit

Permalink
style: Switch stylo function signature checking to use generated bind…
Browse files Browse the repository at this point in the history
…ings.

Bug: 1451956
Reviewed-by: xidorn
MozReview-Commit-ID: A7sWaD2PInN
  • Loading branch information
bholley authored and emilio committed Apr 28, 2018
1 parent 593e4e4 commit 76a14d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ports/geckolib/tests/build.rs
Expand Up @@ -11,8 +11,11 @@ use std::io::{BufRead, BufReader, Write};
use std::path::Path;

fn main() {
// https://github.com/rust-lang/cargo/issues/3544
let style_out_dir = env::var_os("DEP_FOR SOME REASON THE LINKS KEY IS REQUIRED \
TO PASS DATA AROUND BETWEEN BUILD SCRIPTS_OUT_DIR").unwrap();
let root_path = Path::new("../../../");
let bindings_file = root_path.join("components/style/gecko/generated/bindings.rs");
let bindings_file = Path::new(&style_out_dir).join("gecko/bindings.rs");
let glue_file = root_path.join("ports/geckolib/glue.rs");

println!("cargo:rerun-if-changed=build.rs");
Expand Down Expand Up @@ -70,9 +73,6 @@ fn main() {
}
}

// https://github.com/rust-lang/cargo/issues/3544
let style_out_dir = env::var_os("DEP_FOR SOME REASON THE LINKS KEY IS REQUIRED \
TO PASS DATA AROUND BETWEEN BUILD SCRIPTS_OUT_DIR").unwrap();
File::create(out_dir.join("bindings.rs"))
.unwrap()
.write_all(format!("include!(concat!({:?}, \"/gecko/structs.rs\"));",
Expand Down

0 comments on commit 76a14d6

Please sign in to comment.