review feedback: add a comment describing the situation
This commit is contained in:
parent
a83e6c7328
commit
1c191c304a
1 changed files with 6 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue