Skip to content

Commit 0c2cd74

Browse files
committed
[Driver][test] Ensure fuzzer.c commands have --target=
1 parent 2a1edeb commit 0c2cd74

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/test/Driver/fuzzer.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@
1818

1919

2020
// Check that we don't link in libFuzzer.a when producing a shared object.
21-
// RUN: %clang -fsanitize=fuzzer %s -shared -o %t.so -### 2>&1 | FileCheck --check-prefixes=CHECK-NOLIB-SO %s
21+
// RUN: %clang --target=x86_64-linux-gnu -fsanitize=fuzzer %s -shared -### 2>&1 | FileCheck --check-prefixes=CHECK-NOLIB-SO %s
2222
// CHECK-NOLIB-SO-NOT: libclang_rt.libfuzzer
2323

2424
// Check that we don't link in libFuzzer when compiling with -fsanitize=fuzzer-no-link.
2525
// RUN: %clang -fsanitize=fuzzer-no-link %s -target x86_64-apple-darwin14 -### 2>&1 | FileCheck --check-prefixes=CHECK-NOLIB,CHECK-COV %s
2626
// CHECK-NOLIB-NOT: libclang_rt.libfuzzer
2727
// CHECK-COV: -fsanitize-coverage-inline-8bit-counters
2828

29-
// RUN: %clang -fsanitize=fuzzer -fsanitize-coverage=trace-pc %s -### 2>&1 | FileCheck --check-prefixes=CHECK-MSG %s
30-
// CHECK-MSG-NOT: argument unused during compilation
31-
3229
// Check that we respect whether thes tandard library should be linked
3330
// statically.
3431
//

0 commit comments

Comments
 (0)