-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Clang][MIPS] Send correct architecture for MinGW toolchains #121042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
'mipspe' name was chosen by binutils, when the project was able to create executables for Windows CE/MIPS.
@llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Hervé Poussineau (hpoussin) Changes'mipspe' name was chosen by binutils, when the project was able to create executables for Windows CE/MIPS. Full diff: https://github.com/llvm/llvm-project/pull/121042.diff 2 Files Affected:
diff --git a/clang/lib/Driver/ToolChains/MinGW.cpp b/clang/lib/Driver/ToolChains/MinGW.cpp
index 963de81027ca9f..9f0c6160a309ec 100644
--- a/clang/lib/Driver/ToolChains/MinGW.cpp
+++ b/clang/lib/Driver/ToolChains/MinGW.cpp
@@ -138,6 +138,9 @@ void tools::MinGW::Linker::ConstructJob(Compilation &C, const JobAction &JA,
else
CmdArgs.push_back("arm64pe");
break;
+ case llvm::Triple::mipsel:
+ CmdArgs.push_back("mipspe");
+ break;
default:
D.Diag(diag::err_target_unknown_triple) << TC.getEffectiveTriple().str();
}
diff --git a/clang/test/Driver/mingw.cpp b/clang/test/Driver/mingw.cpp
index 9790c86a364f85..66da0c97f41668 100644
--- a/clang/test/Driver/mingw.cpp
+++ b/clang/test/Driver/mingw.cpp
@@ -85,6 +85,10 @@
// RUN: | FileCheck %s --check-prefix CHECK_MINGW_EC_LINK
// CHECK_MINGW_EC_LINK: "-m" "arm64ecpe"
+// RUN: %clang --target=mipsel-windows-gnu -### -o /dev/null %s 2>&1 \
+// RUN: | FileCheck %s --check-prefix CHECK_MINGW_MIPSPE
+// CHECK_MINGW_MIPSPE: "-m" "mipspe"
+
// RUN: %clang --target=i686-windows-gnu -fms-hotpatch -### -- %s 2>&1 \
// RUN: | FileCheck %s --check-prefix=FUNCTIONPADMIN
// FUNCTIONPADMIN: "--functionpadmin"
|
@@ -85,6 +85,10 @@ | |||
// RUN: | FileCheck %s --check-prefix CHECK_MINGW_EC_LINK | |||
// CHECK_MINGW_EC_LINK: "-m" "arm64ecpe" | |||
|
|||
// RUN: %clang --target=mipsel-windows-gnu -### -o /dev/null %s 2>&1 \ | |||
// RUN: | FileCheck %s --check-prefix CHECK_MINGW_MIPSPE | |||
// CHECK_MINGW_MIPSPE: "-m" "mipspe" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it supported by binutils now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, binutils removed support for "mipspe" target in 2.31 (2018)
Ping |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/16227 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/195/builds/3042 Here is the relevant piece of the build log for the reference
|
'mipspe' name was chosen by binutils, when the project was able to create executables for Windows CE/MIPS.