Skip to content

Commit 1c191c3

Browse files
committed
review feedback: add a comment describing the situation
1 parent a83e6c7 commit 1c191c3

File tree

1 file changed

+6
-0
lines changed
  • src/librustc_codegen_ssa/back

1 file changed

+6
-0
lines changed

src/librustc_codegen_ssa/back/link.rs

+6
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,12 @@ pub fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
841841
}
842842
LinkerFlavor::Gcc => {
843843
if cfg!(target_os = "solaris") {
844+
// On historical Solaris systems, "cc" may have
845+
// been Sun Studio, which is not flag-compatible
846+
// with "gcc". This history casts a long shadow,
847+
// and many modern illumos distributions today
848+
// ship GCC as "gcc" without also making it
849+
// available as "cc".
844850
"gcc"
845851
} else {
846852
"cc"

0 commit comments

Comments
 (0)