Skip to content

Commit

Permalink
Skip dlltool tests on non *windows-gnu targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Apr 24, 2024
1 parent a51ad79 commit b1fd4a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tools/compiletest/src/header/needs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ fn find_dlltool(config: &Config) -> bool {
let path = std::env::var_os("PATH").expect("missing PATH environment variable");
let path = std::env::split_paths(&path).collect::<Vec<_>>();

// dlltool is used ony by GNU based `*-*-windows-gnu`
if !(config.matches_os("windows") && config.matches_env("gnu") && config.matches_abi("")) {
return false;
}

// On Windows, dlltool.exe is used for all architectures.
// For non-Windows, there are architecture specific dlltool binaries.
let dlltool_found = if cfg!(windows) {
Expand Down

0 comments on commit b1fd4a7

Please sign in to comment.