Skip to content

Commit c5c3de2

Browse files
committed
[Clang][MIPS] Send correct architecture for MinGW toolchains
'mipspe' name was chosen by binutils, when the project was able to create executables for Windows CE/MIPS.
1 parent dd450b4 commit c5c3de2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/MinGW.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ void tools::MinGW::Linker::ConstructJob(Compilation &C, const JobAction &JA,
137137
else
138138
CmdArgs.push_back("arm64pe");
139139
break;
140+
case llvm::Triple::mipsel:
141+
CmdArgs.push_back("mipspe");
142+
break;
140143
default:
141144
D.Diag(diag::err_target_unknown_triple) << TC.getEffectiveTriple().str();
142145
}

0 commit comments

Comments
 (0)