@@ -232,6 +232,7 @@ counted_array!(pub static ARGS: [ArgInfo<gcc::ArgData>; _] = [
232
232
// Note: this overrides the -fprofile-use option in gcc.rs.
233
233
take_arg!( "-fprofile-use" , PathBuf , Concatenated ( '=' ) , ClangProfileUse ) ,
234
234
take_arg!( "-fsanitize-blacklist" , PathBuf , Concatenated ( '=' ) , ExtraHashFile ) ,
235
+ take_arg!( "-fsanitize-ignorelist" , PathBuf , Concatenated ( '=' ) , ExtraHashFile ) ,
235
236
flag!( "-fuse-ctor-homing" , PassThroughFlag ) ,
236
237
take_arg!( "-gcc-toolchain" , OsString , Separated , PassThrough ) ,
237
238
flag!( "-gcodeview" , PassThroughFlag ) ,
@@ -945,6 +946,22 @@ mod test {
945
946
) ;
946
947
}
947
948
949
+ #[ test]
950
+ fn test_parse_fsanitize_ignorelist ( ) {
951
+ let a = parses ! (
952
+ "-c" ,
953
+ "foo.c" ,
954
+ "-o" ,
955
+ "foo.o" ,
956
+ "-fsanitize-ignorelist=list.txt"
957
+ ) ;
958
+ assert_eq ! ( ovec![ "-fsanitize-ignorelist=list.txt" ] , a. common_args) ;
959
+ assert_eq ! (
960
+ ovec![ std:: env:: current_dir( ) . unwrap( ) . join( "list.txt" ) ] ,
961
+ a. extra_hash_files
962
+ ) ;
963
+ }
964
+
948
965
#[ test]
949
966
fn test_parse_color_diags ( ) {
950
967
let a = parses ! ( "-c" , "foo.c" , "-o" , "foo.o" , "-fcolor-diagnostics" ) ;
0 commit comments