diff options
| author | Joshua M. Clulow <jmc@oxide.computer> | 2020-03-17 15:04:29 -0700 |
|---|---|---|
| committer | Joshua M. Clulow <jmc@oxide.computer> | 2020-03-17 15:04:29 -0700 |
| commit | 1c191c304aa5629e31c93bec395fe4255ecca9ce (patch) | |
| tree | ae20c7d8152a9ad808e6b37173c5c2c00e29438c /src/librustc_codegen_ssa/back | |
| parent | a83e6c7328f3fe8c78445fdb8088d7a7fa6f8897 (diff) | |
| download | rust-1c191c304aa5629e31c93bec395fe4255ecca9ce.tar.gz rust-1c191c304aa5629e31c93bec395fe4255ecca9ce.zip | |
review feedback: add a comment describing the situation
Diffstat (limited to 'src/librustc_codegen_ssa/back')
| -rw-r--r-- | src/librustc_codegen_ssa/back/link.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_codegen_ssa/back/link.rs b/src/librustc_codegen_ssa/back/link.rs index d7081e60bd1..fb6154eb392 100644 --- a/src/librustc_codegen_ssa/back/link.rs +++ b/src/librustc_codegen_ssa/back/link.rs @@ -841,6 +841,12 @@ pub fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) { } LinkerFlavor::Gcc => { if cfg!(target_os = "solaris") { + // On historical Solaris systems, "cc" may have + // been Sun Studio, which is not flag-compatible + // with "gcc". This history casts a long shadow, + // and many modern illumos distributions today + // ship GCC as "gcc" without also making it + // available as "cc". "gcc" } else { "cc" |
