File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ class LLVM_LIBRARY_VISIBILITY HexagonToolChain : public Linux {
81
81
const llvm::opt::ArgList &DriverArgs,
82
82
llvm::opt::ArgStringList &CC1Args) const override ;
83
83
84
- const char *getDefaultLinker () const override { return " hexagon-link" ; }
84
+ const char *getDefaultLinker () const override {
85
+ return getTriple ().isMusl () ? " ld.lld" : " hexagon-link" ;
86
+ }
85
87
86
88
CXXStdlibType GetCXXStdlibType (const llvm::opt::ArgList &Args) const override ;
87
89
Original file line number Diff line number Diff line change 674
674
// RUN: | FileCheck -check-prefix=CHECK090 %s
675
675
// CHECK090-NOT: -fno-use-init-array
676
676
// -----------------------------------------------------------------------------
677
+ // Check default linker for musl
678
+ // -----------------------------------------------------------------------------
679
+ // RUN: %clang -### -target hexagon-unknown-linux-musl %s 2>&1 \
680
+ // RUN: | FileCheck -check-prefix=CHECK091 %s
681
+ // CHECK091: ld.lld
682
+ // -----------------------------------------------------------------------------
683
+ // Check default linker for elf
684
+ // -----------------------------------------------------------------------------
685
+ // RUN: %clang -### -target hexagon-unknown-elf %s 2>&1 \
686
+ // RUN: | FileCheck -check-prefix=CHECK092 %s
687
+ // CHECK092: hexagon-link
688
+ // -----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments