@@ -80,6 +80,8 @@ crate struct Options {
80
80
crate extern_strs : Vec < String > ,
81
81
/// List of `cfg` flags to hand to the compiler. Always includes `rustdoc`.
82
82
crate cfgs : Vec < String > ,
83
+ /// List of check cfg flags to hand to the compiler.
84
+ crate check_cfgs : Vec < String > ,
83
85
/// Codegen options to hand to the compiler.
84
86
crate codegen_options : CodegenOptions ,
85
87
/// Codegen options strings to hand to the compiler.
@@ -172,6 +174,7 @@ impl fmt::Debug for Options {
172
174
. field ( "libs" , & self . libs )
173
175
. field ( "externs" , & FmtExterns ( & self . externs ) )
174
176
. field ( "cfgs" , & self . cfgs )
177
+ . field ( "check-cfgs" , & self . check_cfgs )
175
178
. field ( "codegen_options" , & "..." )
176
179
. field ( "debugging_options" , & "..." )
177
180
. field ( "target" , & self . target )
@@ -506,6 +509,7 @@ impl Options {
506
509
} ;
507
510
508
511
let cfgs = matches. opt_strs ( "cfg" ) ;
512
+ let check_cfgs = matches. opt_strs ( "check-cfg" ) ;
509
513
510
514
let extension_css = matches. opt_str ( "e" ) . map ( |s| PathBuf :: from ( & s) ) ;
511
515
@@ -677,6 +681,7 @@ impl Options {
677
681
externs,
678
682
extern_strs,
679
683
cfgs,
684
+ check_cfgs,
680
685
codegen_options,
681
686
codegen_options_strs,
682
687
debugging_opts,
0 commit comments