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 @@ -1237,15 +1237,17 @@ pub fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
1237
1237
. and_then ( |( lhs, rhs) | rhs. chars ( ) . all ( char:: is_numeric) . then_some ( lhs) )
1238
1238
. unwrap_or ( stem) ;
1239
1239
1240
- // GCC can have an optional target prefix.
1240
+ // GCC/Clang can have an optional target prefix.
1241
1241
let flavor = if stem == "emcc" {
1242
1242
LinkerFlavor :: EmCc
1243
1243
} else if stem == "gcc"
1244
1244
|| stem. ends_with ( "-gcc" )
1245
1245
|| stem == "g++"
1246
1246
|| stem. ends_with ( "-g++" )
1247
1247
|| stem == "clang"
1248
+ || stem. ends_with ( "-clang" )
1248
1249
|| stem == "clang++"
1250
+ || stem. ends_with ( "-clang++" )
1249
1251
{
1250
1252
LinkerFlavor :: from_cli ( LinkerFlavorCli :: Gcc , & sess. target )
1251
1253
} else if stem == "wasm-ld" || stem. ends_with ( "-wasm-ld" ) {
You can’t perform that action at this time.
0 commit comments