[Driver] Pass --unwindlib=platform to tests that check unwinder
authorPetr Hosek <phosek@google.com>
Sun, 7 Mar 2021 23:08:11 +0000 (15:08 -0800)
committerPetr Hosek <phosek@google.com>
Mon, 8 Mar 2021 01:28:34 +0000 (17:28 -0800)
There are two additional cases that were missed in D98131.

Differential Revision: https://reviews.llvm.org/D98158

clang/test/Driver/linux-ld.c

index 77d2c82..5263928 100644 (file)
 //
 // Check that flags can be combined. The -static dominates.
 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
-// RUN:     --target=x86_64-unknown-linux -rtlib=platform \
+// RUN:     --target=x86_64-unknown-linux -rtlib=platform --unwindlib=platform \
 // RUN:     -static-libgcc -static \
 // RUN:     --gcc-toolchain="" \
 // RUN:     --sysroot=%S/Inputs/basic_linux_tree \
 // CHECK-LD-GENTOO: "-lc"
 // CHECK-LD-GENTOO: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
-// RUN:     --target=i686-unknown-linux-gnu -rtlib=platform \
+// RUN:     --target=i686-unknown-linux-gnu -rtlib=platform --unwindlib=platform \
 // RUN:     --sysroot=%S/Inputs/gentoo_linux_gcc_multi_version_tree \
 // RUN:     --gcc-toolchain="" \
 // RUN:   | FileCheck --check-prefix=CHECK-LD-GENTOO-32 %s