Skip to content

Commit f00809c

Browse files
authored
Merge pull request llvm#8396 from apple/revert-8254-eng/PR-123436174
Revert "[Clang] Don't use crtbegin/crtend when building for musl."
2 parents ae573f7 + d3fffb9 commit f00809c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Driver/ToolChains/Gnu.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,16 +385,14 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
385385
const llvm::Triple::ArchType Arch = ToolChain.getArch();
386386
const bool isOHOSFamily = ToolChain.getTriple().isOHOSFamily();
387387
const bool isAndroid = ToolChain.getTriple().isAndroid();
388-
const bool isMusl = ToolChain.getTriple().isMusl();
389388
const bool IsIAMCU = ToolChain.getTriple().isOSIAMCU();
390389
const bool IsVE = ToolChain.getTriple().isVE();
391390
const bool IsPIE = getPIE(Args, ToolChain);
392391
const bool IsStaticPIE = getStaticPIE(Args, ToolChain);
393392
const bool IsStatic = getStatic(Args);
394393
const bool HasCRTBeginEndFiles =
395-
!isMusl && (ToolChain.getTriple().hasEnvironment() ||
396-
(ToolChain.getTriple().getVendor()
397-
!= llvm::Triple::MipsTechnologies));
394+
ToolChain.getTriple().hasEnvironment() ||
395+
(ToolChain.getTriple().getVendor() != llvm::Triple::MipsTechnologies);
398396

399397
ArgStringList CmdArgs;
400398

0 commit comments

Comments
 (0)