forked from OSchip/llvm-project
Rename sparc-myriad-elf triplet to sparc-myriad-rtems
Summary: This is to be consistent with latest Movidius MDK releases. Also, don't inherit any gcc paths for shave triple. Reviewers: jyknight Subscribers: emaste, fedor.sergeev Differential Revision: https://reviews.llvm.org/D41295 llvm-svn: 321080
This commit is contained in:
parent
348a4208e3
commit
5062e6985e
|
@ -199,7 +199,7 @@ void tools::Myriad::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
}
|
||||
|
||||
std::string Exec =
|
||||
Args.MakeArgString(TC.GetProgramPath("sparc-myriad-elf-ld"));
|
||||
Args.MakeArgString(TC.GetProgramPath("sparc-myriad-rtems-ld"));
|
||||
C.addCommand(llvm::make_unique<Command>(JA, *this, Args.MakeArgString(Exec),
|
||||
CmdArgs, Inputs));
|
||||
}
|
||||
|
@ -218,10 +218,11 @@ MyriadToolChain::MyriadToolChain(const Driver &D, const llvm::Triple &Triple,
|
|||
D.Diag(clang::diag::err_target_unsupported_arch)
|
||||
<< Triple.getArchName() << "myriad";
|
||||
LLVM_FALLTHROUGH;
|
||||
case llvm::Triple::shave:
|
||||
return;
|
||||
case llvm::Triple::sparc:
|
||||
case llvm::Triple::sparcel:
|
||||
case llvm::Triple::shave:
|
||||
GCCInstallation.init(Triple, Args, {"sparc-myriad-elf"});
|
||||
GCCInstallation.init(Triple, Args, {"sparc-myriad-rtems"});
|
||||
}
|
||||
|
||||
if (GCCInstallation.isValid()) {
|
||||
|
@ -231,7 +232,7 @@ MyriadToolChain::MyriadToolChain(const Driver &D, const llvm::Triple &Triple,
|
|||
addPathIfExists(D, CompilerSupportDir, getFilePaths());
|
||||
}
|
||||
// libstd++ and libc++ must both be found in this one place.
|
||||
addPathIfExists(D, D.Dir + "/../sparc-myriad-elf/lib", getFilePaths());
|
||||
addPathIfExists(D, D.Dir + "/../sparc-myriad-rtems/lib", getFilePaths());
|
||||
}
|
||||
|
||||
MyriadToolChain::~MyriadToolChain() {}
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
// RUN: %clang -no-canonical-prefixes -### -target sparc-myriad-rtems-elf %s \
|
||||
// RUN: %clang -no-canonical-prefixes -### -target sparc-myriad-rtems %s \
|
||||
// RUN: -ccc-install-dir %S/Inputs/basic_myriad_tree/bin \
|
||||
// RUN: --gcc-toolchain=%S/Inputs/basic_myriad_tree 2>&1 | FileCheck %s -check-prefix=LINK_WITH_RTEMS
|
||||
// LINK_WITH_RTEMS: Inputs{{.*}}crti.o
|
||||
// LINK_WITH_RTEMS: Inputs{{.*}}crtbegin.o
|
||||
// LINK_WITH_RTEMS: "-L{{.*}}Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-elf/4.8.2"
|
||||
// LINK_WITH_RTEMS: "-L{{.*}}Inputs/basic_myriad_tree/bin/../sparc-myriad-elf/lib"
|
||||
// LINK_WITH_RTEMS: "-L{{.*}}Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0"
|
||||
// LINK_WITH_RTEMS: "-L{{.*}}Inputs/basic_myriad_tree/bin/../sparc-myriad-rtems/lib"
|
||||
// LINK_WITH_RTEMS: "--start-group" "-lc" "-lgcc" "-lrtemscpu" "-lrtemsbsp" "--end-group"
|
||||
// LINK_WITH_RTEMS: Inputs{{.*}}crtend.o
|
||||
// LINK_WITH_RTEMS: Inputs{{.*}}crtn.o
|
||||
|
||||
// RUN: %clang -c -no-canonical-prefixes -### -target sparc-myriad-rtems-elf -x c++ %s \
|
||||
// RUN: %clang -c -no-canonical-prefixes -### -target sparc-myriad-rtems -x c++ %s \
|
||||
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/basic_myriad_tree 2>&1 | FileCheck %s -check-prefix=COMPILE_CXX
|
||||
// COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-elf/4.8.2/../../../../sparc-myriad-elf/include/c++/4.8.2"
|
||||
// COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-elf/4.8.2/../../../../sparc-myriad-elf/include/c++/4.8.2/sparc-myriad-elf"
|
||||
// COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-elf/4.8.2/../../../../sparc-myriad-elf/include/c++/4.8.2/backward"
|
||||
// COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0/../../../../sparc-myriad-rtems/include/c++/6.3.0"
|
||||
// COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0/../../../../sparc-myriad-rtems/include/c++/6.3.0/sparc-myriad-rtems"
|
||||
// COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0/../../../../sparc-myriad-rtems/include/c++/6.3.0/backward"
|
||||
|
||||
// RUN: %clang -### -E -target sparc-myriad --sysroot=/yow %s 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix=SLASH_INCLUDE
|
||||
|
@ -85,6 +85,6 @@
|
|||
// RUN: %clang -### -c -g %s -target sparc-myriad 2>&1 | FileCheck -check-prefix=G_SPARC %s
|
||||
// G_SPARC: "-debug-info-kind=limited" "-dwarf-version=2"
|
||||
|
||||
// RUN: %clang -### -c %s -target sparc-myriad-elf -fuse-init-array 2>&1 \
|
||||
// RUN: %clang -### -c %s -target sparc-myriad-rtems -fuse-init-array 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=USE-INIT-ARRAY %s
|
||||
// USE-INIT-ARRAY-NOT: argument unused
|
||||
|
|
Loading…
Reference in New Issue