Skip to content

Commit 0e774e5

Browse files
Avoid some rerun-if-changed directives
1 parent 45b74d8 commit 0e774e5

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

collector/benchmarks/style-servo/components/style/build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ fn generate_properties() {
6363
let entry = entry.unwrap();
6464
match entry.path().extension().and_then(|e| e.to_str()) {
6565
Some("mako") | Some("rs") | Some("py") | Some("zip") => {
66-
println!("cargo:rerun-if-changed={}", entry.path().display());
6766
}
6867
_ => {}
6968
}
@@ -85,7 +84,6 @@ fn generate_properties() {
8584

8685
fn main() {
8786
println!("cargo:rerun-if-changed=build.rs");
88-
println!("cargo:out_dir={}", env::var("OUT_DIR").unwrap());
8987
generate_properties();
9088
build_gecko::generate();
9189
}

collector/benchmarks/style-servo/components/style/build_gecko.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ mod bindings {
4848
const BINDINGS_FILE: &'static str = "bindings.rs";
4949

5050
fn read_config(path: &PathBuf) -> toml::Table {
51-
println!("cargo:rerun-if-changed={}", path.to_str().unwrap());
5251
update_last_modified(&path);
5352

5453
let mut contents = String::new();
@@ -143,7 +142,6 @@ mod bindings {
143142
let mut file = File::open(&path).unwrap();
144143
let mut content = String::new();
145144
file.read_to_string(&mut content).unwrap();
146-
println!("cargo:rerun-if-changed={}", path.to_str().unwrap());
147145
added_paths.insert(path);
148146
// Find all includes and add them recursively
149147
for cap in INCLUDE_RE.captures_iter(&content) {
@@ -538,7 +536,6 @@ mod bindings {
538536
fn generate_atoms() {
539537
let script = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap())
540538
.join("gecko").join("regen_atoms.py");
541-
println!("cargo:rerun-if-changed={}", script.display());
542539
let status = Command::new(&*PYTHON)
543540
.arg(&script)
544541
.arg(DISTDIR_PATH.as_os_str())
@@ -588,17 +585,14 @@ mod bindings {
588585

589586
pub fn generate() {
590587
let dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("gecko/generated");
591-
println!("cargo:rerun-if-changed={}", dir.display());
592588
copy_dir(&dir, &*OUTDIR_PATH, |path| {
593-
println!("cargo:rerun-if-changed={}", path.display());
594589
}).expect("Fail to copy generated files to out dir");
595590
}
596591
}
597592

598593
pub fn generate() {
599594
use self::common::*;
600595
use std::fs;
601-
println!("cargo:rerun-if-changed=build_gecko.rs");
602596
fs::create_dir_all(&*OUTDIR_PATH).unwrap();
603597
bindings::generate();
604598
}

collector/benchmarks/style-servo/components/style/gecko/regen_atoms.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def collect_atoms(objdir):
121121
atoms = []
122122
for source in SOURCES:
123123
path = os.path.abspath(os.path.join(objdir, source.FILE))
124-
print("cargo:rerun-if-changed={}".format(path))
125124
with open(path) as f:
126125
for line in f.readlines():
127126
result = re.match(source.PATTERN, line)
@@ -242,7 +241,6 @@ def write_pseudo_elements(atoms, target_filename):
242241
pseudos.append(atom)
243242

244243
pseudo_definition_template = os.path.join(GECKO_DIR, "pseudo_element_definition.mako.rs")
245-
print("cargo:rerun-if-changed={}".format(pseudo_definition_template))
246244
contents = build.render(pseudo_definition_template, PSEUDOS=pseudos)
247245

248246
with FileAvoidWrite(target_filename) as f:

0 commit comments

Comments
 (0)