Skip to content

Commit

Permalink
Added arbitrary flag support to try_expand() (#640)
Browse files Browse the repository at this point in the history
* Added arbitrary flag support to try_expand()

* Fixed doc for ar_flag, try_expand now uses compiler flags

* Remove unnecessary flag arguments addition
  • Loading branch information
x87-va authored Dec 13, 2021
1 parent 668fdff commit 4ce8275
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ impl Build {
self
}

/// Add an arbitrary flag to the invocation of the compiler
/// Add a flag to the invocation of the ar
///
/// # Example
///
Expand All @@ -419,7 +419,6 @@ impl Build {
/// .ar_flag("/NODEFAULTLIB:libc.dll")
/// .compile("foo");
/// ```
pub fn ar_flag(&mut self, flag: &str) -> &mut Build {
self.ar_flags.push(flag.to_string());
self
Expand Down

0 comments on commit 4ce8275

Please sign in to comment.