Skip to content

Commit 1aab372

Browse files
Don't assume compiler is system clang on macOS (#451)
On older systems, it may be necessary to use custom compiler. So respect whichever compiler user is using to build crate.
1 parent df9d05c commit 1aab372

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

curl-sys/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ fn curl_config_reports_http2() -> bool {
551551
}
552552

553553
fn macos_link_search_path() -> Option<String> {
554-
let output = Command::new("clang")
554+
let output = cc::Build::new()
555+
.get_compiler()
556+
.to_command()
555557
.arg("--print-search-dirs")
556558
.output()
557559
.ok()?;

0 commit comments

Comments
 (0)