Skip to content
Permalink
Browse files

Add rustflags support to config files

`build.rustflags` is treated exactly like `RUSTFLAGS`.

It is a list, so argument lists with spaces work.

`RUSTFLAGS` takes precedent, then `build.rustflags`.
  • Loading branch information...
brson committed Mar 3, 2016
1 parent e4baac0 commit 2f01868a94f85457e02465cfb53b078d4e25b4d5

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -469,7 +469,7 @@ fn scrape_target_config(config: &Config, triple: &str)
None => return Ok(ret),
};
for (lib_name, _) in table.into_iter() {
if lib_name == "ar" || lib_name == "linker" {
if lib_name == "ar" || lib_name == "linker" || lib_name == "rustflags" {
continue
}

Oops, something went wrong.

0 comments on commit 2f01868

Please sign in to comment.
You can’t perform that action at this time.