Skip to content

Commit 98bb5b7

Browse files
crabtwbrson
authored andcommitted
use cc instead of gcc
1 parent fc8a1f5 commit 98bb5b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/comp/back/link.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,10 @@ fn link_binary(sess: session,
608608
// The location of crates will be determined as needed.
609609
let stage: str = "-L" + sess.filesearch.get_target_lib_path();
610610

611-
let prog: str = "gcc";
611+
// In the future, FreeBSD will use clang as default compiler.
612+
// It would be flexible to use cc (system's default C compiler)
613+
// instead of hard-coded gcc
614+
let prog: str = "cc";
612615
// The invocations of gcc share some flags across platforms
613616

614617
let gcc_args =

0 commit comments

Comments
 (0)