From 98bb5b73a5bf4173f88b21b2f27c62971e175f54 Mon Sep 17 00:00:00 2001 From: Jyun-Yan You Date: Fri, 27 Jan 2012 11:08:51 +0800 Subject: [PATCH] use cc instead of gcc --- src/comp/back/link.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index eee0c60599f..c9f4f07a823 100644 --- a/src/comp/back/link.rs +++ b/src/comp/back/link.rs @@ -608,7 +608,10 @@ fn link_binary(sess: session, // The location of crates will be determined as needed. let stage: str = "-L" + sess.filesearch.get_target_lib_path(); - let prog: str = "gcc"; + // In the future, FreeBSD will use clang as default compiler. + // It would be flexible to use cc (system's default C compiler) + // instead of hard-coded gcc + let prog: str = "cc"; // The invocations of gcc share some flags across platforms let gcc_args =