Browse Source

Make is_flag_supported public

Closes #277
cl-test
Kornel 7 years ago
parent
commit
921927462a
  1. 6
      src/lib.rs

6
src/lib.rs

@ -391,7 +391,11 @@ impl Build {
Ok(src) Ok(src)
} }
fn is_flag_supported(&self, flag: &str) -> Result<bool, Error> { /// Run the compiler to test if it accepts the given flag.
///
/// For a convenience method for setting flags conditionally,
/// see `flag_if_supported()`.
pub fn is_flag_supported(&self, flag: &str) -> Result<bool, Error> {
let out_dir = self.get_out_dir()?; let out_dir = self.get_out_dir()?;
let src = self.ensure_check_file()?; let src = self.ensure_check_file()?;
let obj = out_dir.join("flag_check"); let obj = out_dir.join("flag_check");

Loading…
Cancel
Save