@@ -39,12 +39,18 @@ pub struct Options {
39
39
pub error_format : ErrorOutputType ,
40
40
/// Library search paths to hand to the compiler.
41
41
pub libs : Vec < SearchPath > ,
42
+ /// Library search paths strings to hand to the compiler.
43
+ pub lib_strs : Vec < String > ,
42
44
/// The list of external crates to link against.
43
45
pub externs : Externs ,
46
+ /// The list of external crates strings to link against.
47
+ pub extern_strs : Vec < String > ,
44
48
/// List of `cfg` flags to hand to the compiler. Always includes `rustdoc`.
45
49
pub cfgs : Vec < String > ,
46
50
/// Codegen options to hand to the compiler.
47
51
pub codegen_options : CodegenOptions ,
52
+ /// Codegen options strings to hand to the compiler.
53
+ pub codegen_options_strs : Vec < String > ,
48
54
/// Debugging (`-Z`) options to pass to the compiler.
49
55
pub debugging_options : DebuggingOptions ,
50
56
/// The target used to compile the crate against.
@@ -461,6 +467,9 @@ impl Options {
461
467
let generate_search_filter = !matches. opt_present ( "disable-per-crate-search" ) ;
462
468
let persist_doctests = matches. opt_str ( "persist-doctests" ) . map ( PathBuf :: from) ;
463
469
let generate_redirect_pages = matches. opt_present ( "generate-redirect-pages" ) ;
470
+ let codegen_options_strs = matches. opt_strs ( "C" ) ;
471
+ let lib_strs = matches. opt_strs ( "L" ) ;
472
+ let extern_strs = matches. opt_strs ( "extern" ) ;
464
473
465
474
let ( lint_opts, describe_lints, lint_cap) = get_cmd_lint_options ( matches, error_format) ;
466
475
@@ -470,9 +479,12 @@ impl Options {
470
479
proc_macro_crate,
471
480
error_format,
472
481
libs,
482
+ lib_strs,
473
483
externs,
484
+ extern_strs,
474
485
cfgs,
475
486
codegen_options,
487
+ codegen_options_strs,
476
488
debugging_options,
477
489
target,
478
490
edition,
0 commit comments