forked from OSchip/llvm-project
[Myriad]: -nostdlib implies -nostartfiles
llvm-svn: 253390
This commit is contained in:
parent
8601733c1c
commit
9d40374880
|
@ -9941,7 +9941,7 @@ void tools::Myriad::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
static_cast<const toolchains::MyriadToolChain &>(getToolChain());
|
||||
const llvm::Triple &T = TC.getTriple();
|
||||
ArgStringList CmdArgs;
|
||||
bool UseStartfiles = !Args.hasArg(options::OPT_nostartfiles);
|
||||
bool UseStartfiles = !Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles);
|
||||
bool UseDefaultLibs =
|
||||
!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs);
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
// STDLIBCXX: "-lstdc++" "-lc" "-lgcc"
|
||||
|
||||
// RUN: %clang -target sparc-myriad -### -nostdlib %s 2>&1 | FileCheck %s --check-prefix=NOSTDLIB
|
||||
// NOSTDLIB-NOT: crtbegin.o
|
||||
// NOSTDLIB-NOT: "-lc"
|
||||
|
||||
// RUN: %clang -### -c -g %s -target sparc-myriad 2>&1 | FileCheck -check-prefix=G_SPARC %s
|
||||
|
|
Loading…
Reference in New Issue