Skip to content

Commit b1fd4a7

Browse files
committed
Skip dlltool tests on non *windows-gnu targets
1 parent a51ad79 commit b1fd4a7

File tree

1 file changed

+5
-0
lines changed
  • src/tools/compiletest/src/header

1 file changed

+5
-0
lines changed

src/tools/compiletest/src/header/needs.rs

+5
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ fn find_dlltool(config: &Config) -> bool {
261261
let path = std::env::var_os("PATH").expect("missing PATH environment variable");
262262
let path = std::env::split_paths(&path).collect::<Vec<_>>();
263263

264+
// dlltool is used ony by GNU based `*-*-windows-gnu`
265+
if !(config.matches_os("windows") && config.matches_env("gnu") && config.matches_abi("")) {
266+
return false;
267+
}
268+
264269
// On Windows, dlltool.exe is used for all architectures.
265270
// For non-Windows, there are architecture specific dlltool binaries.
266271
let dlltool_found = if cfg!(windows) {

0 commit comments

Comments
 (0)