diff options
| author | Jyun-Yan You <jyyou@cs.nctu.edu.tw> | 2012-01-27 11:08:51 +0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-06 17:56:41 -0800 |
| commit | 98bb5b73a5bf4173f88b21b2f27c62971e175f54 (patch) | |
| tree | 4f74c61ce4a5c63ad55df6222961f134664c1822 | |
| parent | fc8a1f513d872e52c6251bae75462e62675eed75 (diff) | |
use cc instead of gcc
| -rw-r--r-- | src/comp/back/link.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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 = |
