[clang] specify clang --target to fix breakage on AIX (PR #114127)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 29 13:31:38 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Lei Wang (wlei-llvm)

<details>
<summary>Changes</summary>

`-fprofile-sample-use` is not supported on AIX, which caused a CI failure.

---
Full diff: https://github.com/llvm/llvm-project/pull/114127.diff


1 Files Affected:

- (modified) clang/test/CodeGen/pgo-cold-function-coverage.c (+1-1) 


``````````diff
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"
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/114127


More information about the cfe-commits mailing list