[clang] 12d3679 - [clang][tests] Fix ve-toolchain tests with CLANG_DEFAULT_UNWINDLIB
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 28 05:56:20 PST 2022
Author: Timm Bäder
Date: 2022-02-28T14:55:56+01:00
New Revision: 12d3679256c9a544699f9894c16c2918da17e4af
URL: https://github.com/llvm/llvm-project/commit/12d3679256c9a544699f9894c16c2918da17e4af
DIFF: https://github.com/llvm/llvm-project/commit/12d3679256c9a544699f9894c16c2918da17e4af.diff
LOG: [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
Added:
Modified:
clang/test/Driver/ve-toolchain.c
clang/test/Driver/ve-toolchain.cpp
Removed:
################################################################################
diff --git a/clang/test/Driver/ve-toolchain.c b/clang/test/Driver/ve-toolchain.c
index 35af3c81c4c6f..753dee19fcbfb 100644
--- a/clang/test/Driver/ve-toolchain.c
+++ b/clang/test/Driver/ve-toolchain.c
@@ -83,6 +83,7 @@
// RUN: %clang -### -target ve-unknown-linux-gnu \
// RUN: --sysroot %S/Inputs/basic_ve_tree \
// RUN: -resource-dir=%S/Inputs/basic_ve_tree/resource_dir \
+// RUN: --unwindlib=none \
// RUN: -fuse-ld=ld \
// RUN: %s 2>&1 | FileCheck -check-prefix=DEF %s
diff --git a/clang/test/Driver/ve-toolchain.cpp b/clang/test/Driver/ve-toolchain.cpp
index 7447f34b70e0c..4b2b9c5747fe4 100644
--- a/clang/test/Driver/ve-toolchain.cpp
+++ b/clang/test/Driver/ve-toolchain.cpp
@@ -133,7 +133,8 @@
// RUN: --sysroot %S/Inputs/basic_ve_tree \
// RUN: -fuse-ld=ld \
// 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-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
More information about the cfe-commits
mailing list