Skip to content

Commit a33003b

Browse files
committed
Ignore __imp_ names when searching for symbols
1 parent d162154 commit a33003b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/run-make-support/src/symbols.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn any_symbol_contains(path: impl AsRef<Path>, substrings: &[&str]) -> bool
3232
.name_bytes()
3333
.unwrap()
3434
.windows(substring.len())
35-
.any(|x| x == substring.as_bytes())
35+
.any(|x| x == substring.as_bytes() && !x.starts_with(b"__imp_"))
3636
{
3737
eprintln!("{:?} contains {}", sym, substring);
3838
return true;

0 commit comments

Comments
 (0)