forked from OSchip/llvm-project
[test] Fix test/Driver/ve-toolchain.cpp
It should specify --sysroot to test the paths of crt1.o/crti.o/crtbegin.o. For a user who enable VE but do not actually have VE sysroot, the "nld" command line will have bare "crt1.o" "crti.o" ... "crtbegin.o"
This commit is contained in:
parent
754d1d3d52
commit
880aa6ac66
|
@ -7,12 +7,6 @@
|
|||
// RUN: %clangxx -### -g -target ve %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
|
||||
// DWARF_VER: "-dwarf-version=4"
|
||||
|
||||
///-----------------------------------------------------------------------------
|
||||
/// Checking dynamic-linker
|
||||
|
||||
// RUN: %clangxx -### -target ve %s 2>&1 | FileCheck -check-prefix=DYNLINKER %s
|
||||
// DYNLINKER: nld{{.*}} "-dynamic-linker" "/opt/nec/ve/lib/ld-linux-ve.so.1"
|
||||
|
||||
///-----------------------------------------------------------------------------
|
||||
/// Checking VE specific option
|
||||
|
||||
|
@ -128,5 +122,6 @@
|
|||
// RUN: %clangxx -### -target ve --stdlib=c++ %s 2>&1 | \
|
||||
// RUN: FileCheck -check-prefix=LINK %s
|
||||
|
||||
// LINK: clang{{.*}} "-cc1"
|
||||
// LINK: nld{{.*}} "{{.*}}/crt1.o" "{{.*}}/crti.o"{{.*}}"crtbegin.o"{{.*}}"-lc++" "-lc++abi" "-lunwind" "-lpthread" "-ldl"
|
||||
// LINK: nld"
|
||||
// LINK-SAME: "-dynamic-linker" "/opt/nec/ve/lib/ld-linux-ve.so.1"
|
||||
// LINK-SAME: "{{[^"]*}}crt1.o" "{{[^"]*}}crti.o"{{.*}}"crtbegin.o"{{.*}}"-lc++" "-lc++abi" "-lunwind" "-lpthread" "-ldl"
|
||||
|
|
Loading…
Reference in New Issue