Skip to content

Commit 67bc7dc

Browse files
committed
build(rust_src): replace gcc with cc for compiling shared libraries
1 parent e517bf8 commit 67bc7dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/rust_src/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn main() {
4747
])
4848
.status();
4949
if status.is_err() || !status.unwrap().success() {
50-
let status = std::process::Command::new("gcc")
50+
let status = std::process::Command::new("cc")
5151
.args([
5252
"-shared", "-O2",
5353
"-o", loader_dll.to_str().unwrap(),
@@ -62,7 +62,7 @@ fn main() {
6262
}
6363
} else if is_macos {
6464
let loader_dylib = base_dir.join("libring_python.dylib");
65-
let status = std::process::Command::new("gcc")
65+
let status = std::process::Command::new("cc")
6666
.args([
6767
"-shared", "-fPIC", "-O2",
6868
"-install_name", "@rpath/libring_python.dylib",
@@ -80,7 +80,7 @@ fn main() {
8080
// Linux, FreeBSD, etc.
8181
let loader_so = base_dir.join("libring_python.so");
8282
std::fs::create_dir_all(&base_dir).ok();
83-
let status = std::process::Command::new("gcc")
83+
let status = std::process::Command::new("cc")
8484
.args([
8585
"-shared", "-fPIC", "-O2",
8686
"-Wl,-soname,libring_python.so",

0 commit comments

Comments
 (0)