[clang] 0c2cd74 - [Driver][test] Ensure fuzzer.c commands have --target=

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 29 20:53:43 PDT 2023


Author: Fangrui Song
Date: 2023-07-29T20:53:40-07:00
New Revision: 0c2cd74ff85a43a346ee05a2bfb88f07d9e60647

URL: https://github.com/llvm/llvm-project/commit/0c2cd74ff85a43a346ee05a2bfb88f07d9e60647
DIFF: https://github.com/llvm/llvm-project/commit/0c2cd74ff85a43a346ee05a2bfb88f07d9e60647.diff

LOG: [Driver][test] Ensure fuzzer.c commands have --target=

Added: 
    

Modified: 
    clang/test/Driver/fuzzer.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/fuzzer.c b/clang/test/Driver/fuzzer.c
index de1d51d0d88ef9..14caf7690057d8 100644
--- a/clang/test/Driver/fuzzer.c
+++ b/clang/test/Driver/fuzzer.c
@@ -18,7 +18,7 @@
 
 
 // Check that we don't link in libFuzzer.a when producing a shared object.
-// RUN: %clang -fsanitize=fuzzer %s -shared -o %t.so -### 2>&1 | FileCheck --check-prefixes=CHECK-NOLIB-SO %s
+// RUN: %clang --target=x86_64-linux-gnu -fsanitize=fuzzer %s -shared -### 2>&1 | FileCheck --check-prefixes=CHECK-NOLIB-SO %s
 // CHECK-NOLIB-SO-NOT: libclang_rt.libfuzzer
 
 // Check that we don't link in libFuzzer when compiling with -fsanitize=fuzzer-no-link.
@@ -26,9 +26,6 @@
 // CHECK-NOLIB-NOT: libclang_rt.libfuzzer
 // CHECK-COV: -fsanitize-coverage-inline-8bit-counters
 
-// RUN: %clang -fsanitize=fuzzer -fsanitize-coverage=trace-pc %s -### 2>&1 | FileCheck --check-prefixes=CHECK-MSG %s
-// CHECK-MSG-NOT: argument unused during compilation
-
 // Check that we respect whether thes tandard library should be linked
 // statically.
 //


        


More information about the cfe-commits mailing list