[clang] [Clang] Don't use crtbegin/crtend when building for musl. (PR #85089)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 13 07:42:27 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 960b4aa6dab69125778f230c4c94f2d19c96cc87 8bdd6627e21eaddedfff208eebaa46f1eeb81674 -- clang/lib/Driver/ToolChains/Gnu.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 7b7d9194a7..740a160cfa 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -377,9 +377,9 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
const bool IsStaticPIE = getStaticPIE(Args, ToolChain);
const bool IsStatic = getStatic(Args);
const bool HasCRTBeginEndFiles =
- !isMusl && (ToolChain.getTriple().hasEnvironment() ||
- (ToolChain.getTriple().getVendor()
- != llvm::Triple::MipsTechnologies));
+ !isMusl &&
+ (ToolChain.getTriple().hasEnvironment() ||
+ (ToolChain.getTriple().getVendor() != llvm::Triple::MipsTechnologies));
ArgStringList CmdArgs;
``````````
</details>
https://github.com/llvm/llvm-project/pull/85089
More information about the cfe-commits
mailing list