File tree 1 file changed +9
-4
lines changed
src/tools/llvm-bitcode-linker/src
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl Session {
62
62
. arg ( "-o" )
63
63
. arg ( & self . link_path )
64
64
. output ( )
65
- . unwrap ( ) ;
65
+ . context ( "An error occured when calling llvm-link. Make sure the llvm-tools component is installed." ) ? ;
66
66
67
67
if !llvm_link_output. status . success ( ) {
68
68
tracing:: error!(
@@ -108,7 +108,9 @@ impl Session {
108
108
opt_cmd. arg ( "--strip-debug" ) ;
109
109
}
110
110
111
- let opt_output = opt_cmd. output ( ) . unwrap ( ) ;
111
+ let opt_output = opt_cmd. output ( ) . context (
112
+ "An error occured when calling opt. Make sure the llvm-tools component is installed." ,
113
+ ) ?;
112
114
113
115
if !opt_output. status . success ( ) {
114
116
tracing:: error!(
@@ -133,8 +135,11 @@ impl Session {
133
135
lcc_command. arg ( "--mcpu" ) . arg ( mcpu) ;
134
136
}
135
137
136
- let lcc_output =
137
- lcc_command. arg ( & self . opt_path ) . arg ( "-o" ) . arg ( & self . out_path ) . output ( ) . unwrap ( ) ;
138
+ let lcc_output = lcc_command
139
+ . arg ( & self . opt_path )
140
+ . arg ( "-o" ) . arg ( & self . out_path )
141
+ . output ( )
142
+ . context ( "An error occured when calling llc. Make sure the llvm-tools component is installed." ) ?;
138
143
139
144
if !lcc_output. status . success ( ) {
140
145
tracing:: error!(
You can’t perform that action at this time.
0 commit comments