Skip to content

Commit c0195ea

Browse files
onelsonlu-zero
authored andcommitted
add builder method to supply autoreconf options
1 parent aaa79af commit c0195ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ impl Config {
194194
self
195195
}
196196

197+
/// Options to pass through to `autoreconf` prior to configuring the build.
198+
pub fn reconf<P: AsRef<OsStr>>(&mut self, flags: P) -> &mut Config {
199+
self.reconfig = Some(flags.as_ref().to_os_string());
200+
self
201+
}
202+
197203
/// Run this configuration, compiling the library with all the configured
198204
/// options.
199205
///

0 commit comments

Comments
 (0)