Browse Source

Merge pull request #204 from opilar/feature/config-derive

Implementation for Config::default
cmd
Alex Crichton 8 years ago
committed by GitHub
parent
commit
4adb2bc940
  1. 8
      src/lib.rs

8
src/lib.rs

@ -72,7 +72,7 @@ mod setup_config;
pub mod windows_registry;
/// Extra configuration to pass to gcc.
#[derive(Clone, Debug, Default)]
#[derive(Clone, Debug)]
pub struct Config {
include_directories: Vec<PathBuf>,
definitions: Vec<(String, Option<String>)>,
@ -1187,6 +1187,12 @@ impl Config {
}
}
impl Default for Config {
fn default() -> Config {
Config::new()
}
}
impl Tool {
fn new(path: PathBuf) -> Tool {
// Try to detect family of the tool from its name, falling back to Gnu.

Loading…
Cancel
Save