File tree Expand file tree Collapse file tree
plugins/bntl_utils/cli/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2427impl 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
You can’t perform that action at this time.
0 commit comments