bug #3219: specify hostfile by HOST_FILE env var

This commit is contained in:
Shing Lyu 2014-12-08 20:22:20 +08:00
parent aae9bc2071
commit c17f04771e
2 changed files with 102 additions and 2 deletions

View file

@ -12,6 +12,7 @@ extern crate libc;
extern crate servo;
extern crate time;
extern crate util;
extern crate "net" as servo_net;
#[cfg(not(test))]
extern crate "glutin_app" as app;
@ -29,6 +30,9 @@ use libc::c_int;
#[cfg(not(test))]
use util::opts;
#[cfg(not(test))]
use servo_net::resource_task;
#[cfg(not(test))]
use servo::Browser;
#[cfg(not(test))]
@ -113,6 +117,7 @@ fn setup_logging() {
fn main() {
if opts::from_cmdline_args(get_args().as_slice()) {
setup_logging();
resource_task::global_init();
let window = if opts::get().headless {
None