File tree 1 file changed +3
-1
lines changed
compiler/rustc_codegen_ssa/src/back
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1199,15 +1199,17 @@ pub fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
1199
1199
. and_then ( |( lhs, rhs) | rhs. chars ( ) . all ( char:: is_numeric) . then_some ( lhs) )
1200
1200
. unwrap_or ( stem) ;
1201
1201
1202
- // GCC can have an optional target prefix.
1202
+ // GCC/Clang can have an optional target prefix.
1203
1203
let flavor = if stem == "emcc" {
1204
1204
LinkerFlavor :: EmCc
1205
1205
} else if stem == "gcc"
1206
1206
|| stem. ends_with ( "-gcc" )
1207
1207
|| stem == "g++"
1208
1208
|| stem. ends_with ( "-g++" )
1209
1209
|| stem == "clang"
1210
+ || stem. ends_with ( "-clang" )
1210
1211
|| stem == "clang++"
1212
+ || stem. ends_with ( "-clang++" )
1211
1213
{
1212
1214
LinkerFlavor :: from_cli ( LinkerFlavorCli :: Gcc , & sess. target )
1213
1215
} else if stem == "wasm-ld" || stem. ends_with ( "-wasm-ld" ) {
You can’t perform that action at this time.
0 commit comments