Skip to content

Commit fd2b919

Browse files
committed
[BNTL] Implement compiler flags for BNTL CLI
1 parent 061e898 commit fd2b919

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugins/bntl_utils/cli/src/create.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ pub struct CreateArgs {
1919
pub include_directories: Vec<PathBuf>,
2020
#[clap(long)]
2121
pub dry_run: bool,
22+
23+
#[arg(last = true, allow_hyphen_values = true, num_args = 0..)]
24+
compiler_flags: Vec<String>,
2225
}
2326

2427
impl CreateArgs {
@@ -41,7 +44,8 @@ impl CreateArgs {
4144
std::fs::create_dir_all(&output_path).expect("Failed to create output directory");
4245

4346
let processor = TypeLibProcessor::new(&self.name, &self.platform)
44-
.with_include_directories(self.include_directories.clone());
47+
.with_include_directories(self.include_directories.clone())
48+
.with_options(self.compiler_flags.clone());
4549
// TODO: Need progress indicator here, when downloading files.
4650
let resolved_input = self.input.resolve().expect("Failed to resolve input");
4751

0 commit comments

Comments
 (0)