Skip to content

Commit

Permalink
use "gcc" by default on illumos systems (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
jclulow authored Apr 19, 2020
1 parent a20cdff commit 383f2df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1912,8 +1912,11 @@ impl Build {
("CC", "cl.exe", "gcc", "cc", "clang")
};

// On Solaris, c++/cc unlikely to exist or be correct.
let default = if host.contains("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".
let default = if host.contains("solaris") || host.contains("illumos") {
gnu
} else {
traditional
Expand Down

0 comments on commit 383f2df

Please sign in to comment.