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