diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-03-23 01:52:21 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-03-23 01:52:21 +0530 |
commit | 003fdd41769652188a5954e6499f3cb44eef6b10 (patch) | |
tree | 3764d9ffb4ed774c0580b34f3bcce1d6edc0b64b /components/script/dom/bindings/codegen/parser/WebIDL.py | |
parent | 50193e9119c567c2c511a53749ff188b9c7ec49e (diff) | |
parent | e6a3f85383bbc4ce711d26d250604e4916f0bd2b (diff) | |
download | servo-003fdd41769652188a5954e6499f3cb44eef6b10.tar.gz servo-003fdd41769652188a5954e6499f3cb44eef6b10.zip |
Auto merge of #10127 - edunham:gold-env-var, r=larsbergstrom
Read `rustc-with-gold` setting from env var when no `.servobuild`
The build system needs to disable gold on arm64 slaves. Other configuration is
done through environment variables, and buildbot hosts currently don't use a
.servobuild file at all.
This change adds the `get_env_bool` function to cast an environment variable's
string contents into a Python boolean, and uses it to retrieve the optional
`SERVO_RUSTC_WITH_GOLD` setting.
I figured it's worth throwing the helper function in now in case we later want to read booleans from other env vars, but there's currently no need to make up a name for and read from an env var for every single setting.
r? @larsbergstrom
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10127)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/WebIDL.py')
0 files changed, 0 insertions, 0 deletions