forked from OSchip/llvm-project
[clang][tests] Fix ve-toolchain tests with CLANG_DEFAULT_UNWINDLIB
Otherwise, the driver will insert e.g. -lgcc_s when CLANG_DEFAULT_UNWINDLIB=libgcc is set during the clang build. Differential Revision: https://reviews.llvm.org/D120644
This commit is contained in:
parent
43c071fa4c
commit
12d3679256
|
@ -83,6 +83,7 @@
|
||||||
// RUN: %clang -### -target ve-unknown-linux-gnu \
|
// RUN: %clang -### -target ve-unknown-linux-gnu \
|
||||||
// RUN: --sysroot %S/Inputs/basic_ve_tree \
|
// RUN: --sysroot %S/Inputs/basic_ve_tree \
|
||||||
// RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
|
// RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
|
||||||
|
// RUN: --unwindlib=none \
|
||||||
// RUN: -fuse-ld=ld \
|
// RUN: -fuse-ld=ld \
|
||||||
// RUN: %s 2>&1 | FileCheck -check-prefix=DEF %s
|
// RUN: %s 2>&1 | FileCheck -check-prefix=DEF %s
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,8 @@
|
||||||
// RUN: --sysroot %S/Inputs/basic_ve_tree \
|
// RUN: --sysroot %S/Inputs/basic_ve_tree \
|
||||||
// RUN: -fuse-ld=ld \
|
// RUN: -fuse-ld=ld \
|
||||||
// RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
|
// RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
|
||||||
// RUN: --stdlib=c++ %s 2>&1 | FileCheck -check-prefix=DEF %s
|
// RUN: --unwindlib=none \
|
||||||
|
// RUN: --stdlib=libc++ %s 2>&1 | FileCheck -check-prefix=DEF %s
|
||||||
|
|
||||||
// DEF: clang{{.*}}" "-cc1"
|
// DEF: clang{{.*}}" "-cc1"
|
||||||
// DEF-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
// DEF-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
|
||||||
|
|
Loading…
Reference in New Issue