@@ -80,6 +80,8 @@ crate struct Options {
8080 crate extern_strs : Vec < String > ,
8181 /// List of `cfg` flags to hand to the compiler. Always includes `rustdoc`.
8282 crate cfgs : Vec < String > ,
83+ /// List of check cfg flags to hand to the compiler.
84+ crate check_cfgs : Vec < String > ,
8385 /// Codegen options to hand to the compiler.
8486 crate codegen_options : CodegenOptions ,
8587 /// Codegen options strings to hand to the compiler.
@@ -172,6 +174,7 @@ impl fmt::Debug for Options {
172174 . field ( "libs" , & self . libs )
173175 . field ( "externs" , & FmtExterns ( & self . externs ) )
174176 . field ( "cfgs" , & self . cfgs )
177+ . field ( "check-cfgs" , & self . check_cfgs )
175178 . field ( "codegen_options" , & "..." )
176179 . field ( "debugging_options" , & "..." )
177180 . field ( "target" , & self . target )
@@ -506,6 +509,7 @@ impl Options {
506509 } ;
507510
508511 let cfgs = matches. opt_strs ( "cfg" ) ;
512+ let check_cfgs = matches. opt_strs ( "check-cfg" ) ;
509513
510514 let extension_css = matches. opt_str ( "e" ) . map ( |s| PathBuf :: from ( & s) ) ;
511515
@@ -677,6 +681,7 @@ impl Options {
677681 externs,
678682 extern_strs,
679683 cfgs,
684+ check_cfgs,
680685 codegen_options,
681686 codegen_options_strs,
682687 debugging_opts,
0 commit comments