Author: Fangrui Song Date: 2023-07-29T21:25:31-07:00 New Revision: f92551ba6b5aaef28d886ea6b3c4f9774fa8fadd
URL: https://github.com/llvm/llvm-project/commit/f92551ba6b5aaef28d886ea6b3c4f9774fa8fadd DIFF: https://github.com/llvm/llvm-project/commit/f92551ba6b5aaef28d886ea6b3c4f9774fa8fadd.diff LOG: [Driver][test] pgo-sample-use-profi.c: specify --target= Some targets (e.g. AIX) report an error for certain unimplemented features, making Clang exit with 1. Added: Modified: clang/test/Driver/pgo-sample-use-profi.c Removed: ################################################################################ diff --git a/clang/test/Driver/pgo-sample-use-profi.c b/clang/test/Driver/pgo-sample-use-profi.c index 454a511a06281b..0370d947ce590f 100644 --- a/clang/test/Driver/pgo-sample-use-profi.c +++ b/clang/test/Driver/pgo-sample-use-profi.c @@ -1,4 +1,4 @@ /// Test if profi flat is enabled in frontend as user-facing feature. -// RUN: %clang -c -fsample-profile-use-profi -fprofile-sample-use=/dev/null -### %s 2>&1 | FileCheck %s +// RUN: %clang --target=x86_64 -c -fsample-profile-use-profi -fprofile-sample-use=/dev/null -### %s 2>&1 | FileCheck %s // CHECK: "-mllvm" "-sample-profile-use-profi" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits