Skip to content

Commit 048894c

Browse files
committed
Detect clang installations as well
Useful on android apparently! Closes #40
1 parent 3bea062 commit 048894c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backtrace-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fn find_tool(compiler: &gcc::Tool, cc: &str, tool: &str) -> PathBuf {
3535
}
3636
let tool_suffix = format!("-{}", tool);
3737
try_tool(compiler, cc, "-gcc", &tool_suffix)
38+
.or_else(|| try_tool(compiler, cc, "-clang", &tool_suffix))
3839
.or_else(|| try_tool(compiler, cc, "-cc", &tool_suffix))
3940
.unwrap_or_else(|| PathBuf::from(tool))
4041
}

0 commit comments

Comments
 (0)