servo/components
Alex Crichton e8eebc1111 Fix spurious rebuilds of the script crate
The script crate currently has a build script, and Cargo will consider all files
in the script crate as inputs to the build script as it otherwise doesn't know
[what the input files are][cargo-1162]. This means that if any file in the
source tree of the script crate changes (or is created) then Cargo will think it
needs to re-run the build script and rebuild the crate.

[cargo-1162]: https://github.com/rust-lang/cargo/issues/1162

The build script of the script crate is invoking python, and consequently Python
is generating some bytecode files in the source tree. On the second build of
Servo, Cargo will see these new files, think that something has changed, and
will re-run the build script of the script crate.

This change passes the `-B` flag to python to avoid generating these bytecode
files, which should avoid tampering with the source tree and appease Cargo by
ensuring that it doesn't get rebuilt.

---

As a helpful tip to if this comes up again, this was discovered by using the
changes in rust-lang/cargo@c447e9d plus the change in rust-lang/cargo#2044. Once
`RUST_LOG` was set to `cargo::ops::cargo_rustc::fingerprint=info`, the second
run of `./mach build` printed out:

```
precalculated components have changed:
  1444364448.000000000s (/build/servo/components/script/dom/bindings/codegen/parser/WebIDL.pyc) !=
  1444364235.000000000s (/build/servo/components/script/document_loader.rs)
```

Which should help easily diagnose these kinds of problems in the future!
2015-10-08 21:37:56 -07:00
..
app_units Prepare app_units crate for publishing 2015-10-01 11:04:16 +10:00
canvas Handle zero-sized source surfaces properly, and upgrade ipc-channel to 2015-09-30 23:09:36 -07:00
canvas_traits Handle zero-sized source surfaces properly, and upgrade ipc-channel to 2015-09-30 23:09:36 -07:00
compositing Simplify and unify compositor shutdown code paths 2015-10-07 18:42:11 -07:00
devtools Make it possible for iframes to create their own pipeline ID. 2015-10-06 17:06:53 +10:00
devtools_traits tests for devtools integration with network requests/responses 2015-09-25 22:07:01 +05:30
gfx layout: Add a field in the display list for simple border radii on box 2015-10-06 14:04:50 -07:00
gfx_traits Layerize canvas 2015-05-20 19:10:50 +02:00
layout Auto merge of #7825 - eefriedman:div-align, r=mbrubeck 2015-10-08 12:20:55 -06:00
layout_traits sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
msg Auto merge of #7899 - glennw:subpage-fixes-1, r=pcwalton 2015-10-07 18:36:35 -06:00
net Implement Storage::SupportedPropertyNames 2015-10-04 10:22:13 -04:00
net_traits Implement Storage::SupportedPropertyNames 2015-10-04 10:22:13 -04:00
plugins Rust upgrade to nightly 20151002 2015-10-02 13:50:11 -05:00
profile sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
profile_traits sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
script Fix spurious rebuilds of the script crate 2015-10-08 21:37:56 -07:00
script_traits Auto merge of #7807 - glennw:pid, r=jdm 2015-10-06 01:08:32 -06:00
servo Simplify and unify compositor shutdown code paths 2015-10-07 18:42:11 -07:00
style Auto merge of #7825 - eefriedman:div-align, r=mbrubeck 2015-10-08 12:20:55 -06:00
style_traits sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
util Add the dump-layer-tree option to the -Z help text 2015-10-08 10:16:18 -07:00
webdriver_server Fix incorrect indentation in handle_take_screenshot. 2015-10-06 18:13:22 +02:00
webdriver_traits Fix reported test-tidy errors for unmerged import blocks 2015-09-19 12:50:14 -04:00