Skip to content

Commit 4a618fe

Browse files
fix exception handling for isainfo execution failure
remove unnecessary gcc_s addition in libstd for Solaris
1 parent 33b655e commit 4a618fe

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def build_triple(self):
355355
try:
356356
cputype = subprocess.check_output(['isainfo',
357357
'-k']).strip().decode(default_encoding)
358-
except (subprocess.CalledProcessError, WindowsError):
358+
except (subprocess.CalledProcessError, OSError):
359359
err = "isainfo not found"
360360
if self.verbose:
361361
raise Exception(err)

src/libstd/build.rs

-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ fn main() {
4646
} else if target.contains("dragonfly") || target.contains("bitrig") ||
4747
target.contains("netbsd") || target.contains("openbsd") {
4848
println!("cargo:rustc-link-lib=pthread");
49-
} else if target.contains("solaris") {
50-
println!("cargo:rustc-link-lib=gcc_s");
5149
} else if target.contains("apple-darwin") {
5250
println!("cargo:rustc-link-lib=System");
5351
} else if target.contains("apple-ios") {

0 commit comments

Comments
 (0)