@@ -39,12 +39,18 @@ pub struct Options {
3939 pub error_format : ErrorOutputType ,
4040 /// Library search paths to hand to the compiler.
4141 pub libs : Vec < SearchPath > ,
42+ /// Library search paths strings to hand to the compiler.
43+ pub lib_strs : Vec < String > ,
4244 /// The list of external crates to link against.
4345 pub externs : Externs ,
46+ /// The list of external crates strings to link against.
47+ pub extern_strs : Vec < String > ,
4448 /// List of `cfg` flags to hand to the compiler. Always includes `rustdoc`.
4549 pub cfgs : Vec < String > ,
4650 /// Codegen options to hand to the compiler.
4751 pub codegen_options : CodegenOptions ,
52+ /// Codegen options strings to hand to the compiler.
53+ pub codegen_options_strs : Vec < String > ,
4854 /// Debugging (`-Z`) options to pass to the compiler.
4955 pub debugging_options : DebuggingOptions ,
5056 /// The target used to compile the crate against.
@@ -461,6 +467,9 @@ impl Options {
461467 let generate_search_filter = !matches. opt_present ( "disable-per-crate-search" ) ;
462468 let persist_doctests = matches. opt_str ( "persist-doctests" ) . map ( PathBuf :: from) ;
463469 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" ) ;
464473
465474 let ( lint_opts, describe_lints, lint_cap) = get_cmd_lint_options ( matches, error_format) ;
466475
@@ -470,9 +479,12 @@ impl Options {
470479 proc_macro_crate,
471480 error_format,
472481 libs,
482+ lib_strs,
473483 externs,
484+ extern_strs,
474485 cfgs,
475486 codegen_options,
487+ codegen_options_strs,
476488 debugging_options,
477489 target,
478490 edition,
0 commit comments