[clang] cc60c46 - specify clang --target to fix breakage on AIX (#114127)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 29 21:06:46 PDT 2024
Author: Lei Wang
Date: 2024-10-29T21:06:43-07:00
New Revision: cc60c46e39b0fffadc83a905b37d98aff426ac17
URL: https://github.com/llvm/llvm-project/commit/cc60c46e39b0fffadc83a905b37d98aff426ac17
DIFF: https://github.com/llvm/llvm-project/commit/cc60c46e39b0fffadc83a905b37d98aff426ac17.diff
LOG: specify clang --target to fix breakage on AIX (#114127)
`-fprofile-sample-use` is not supported on AIX, which caused a CI
failure.
Added:
Modified:
clang/test/CodeGen/pgo-cold-function-coverage.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/pgo-cold-function-coverage.c b/clang/test/CodeGen/pgo-cold-function-coverage.c
index fd1e1e7e14cda5..3003cdc3e15e02 100644
--- a/clang/test/CodeGen/pgo-cold-function-coverage.c
+++ b/clang/test/CodeGen/pgo-cold-function-coverage.c
@@ -1,7 +1,7 @@
// Test -fprofile-generate-cold-function-coverage
// RUN: rm -rf %t && split-file %s %t
-// RUN: %clang -O2 -fprofile-generate-cold-function-coverage=/xxx/yyy/ -fprofile-sample-accurate -fprofile-sample-use=%t/pgo-cold-func.prof -S -emit-llvm -o - %t/pgo-cold-func.c | FileCheck %s
+// RUN: %clang --target=x86_64 -O2 -fprofile-generate-cold-function-coverage=/xxx/yyy/ -fprofile-sample-accurate -fprofile-sample-use=%t/pgo-cold-func.prof -S -emit-llvm -o - %t/pgo-cold-func.c | FileCheck %s
// CHECK: @__llvm_profile_filename = {{.*}} c"/xxx/yyy/default_%m.profraw\00"
More information about the cfe-commits
mailing list