Skip to content

Commit

Permalink
Ignore __imp_ names when searching for symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Aug 8, 2024
1 parent d162154 commit a33003b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/run-make-support/src/symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn any_symbol_contains(path: impl AsRef<Path>, substrings: &[&str]) -> bool
.name_bytes()
.unwrap()
.windows(substring.len())
.any(|x| x == substring.as_bytes())
.any(|x| x == substring.as_bytes() && !x.starts_with(b"__imp_"))
{
eprintln!("{:?} contains {}", sym, substring);
return true;
Expand Down

0 comments on commit a33003b

Please sign in to comment.