Skip to content

Commit 383f2df

Browse files
authored
use "gcc" by default on illumos systems (#487)
1 parent a20cdff commit 383f2df

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,8 +1912,11 @@ impl Build {
19121912
("CC", "cl.exe", "gcc", "cc", "clang")
19131913
};
19141914

1915-
// On Solaris, c++/cc unlikely to exist or be correct.
1916-
let default = if host.contains("solaris") {
1915+
// On historical Solaris systems, "cc" may have been Sun Studio, which
1916+
// is not flag-compatible with "gcc". This history casts a long shadow,
1917+
// and many modern illumos distributions today ship GCC as "gcc" without
1918+
// also making it available as "cc".
1919+
let default = if host.contains("solaris") || host.contains("illumos") {
19171920
gnu
19181921
} else {
19191922
traditional

0 commit comments

Comments
 (0)