[compiler-rt] [llvm-lit] Lit Internal Shell -Fix Command Not Found Error (PR #102200)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 12:05:25 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-pgo

Author: None (Harini0924)

<details>
<summary>Changes</summary>

Added `env` in front of `LLVM_PROFILE_FILE` to properly set the environment
variable correctly.

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


1 Files Affected:

- (modified) compiler-rt/test/profile/Linux/instrprof-comdat.test (+1-1) 


``````````diff
diff --git a/compiler-rt/test/profile/Linux/instrprof-comdat.test b/compiler-rt/test/profile/Linux/instrprof-comdat.test
index cbeeb91a64a4c..d71b49f6e06c7 100644
--- a/compiler-rt/test/profile/Linux/instrprof-comdat.test
+++ b/compiler-rt/test/profile/Linux/instrprof-comdat.test
@@ -1,6 +1,6 @@
 RUN: mkdir -p %t.d
 RUN: %clangxx_profgen -o %t.d/comdat -fcoverage-mapping -fuse-ld=gold %S/../Inputs/instrprof-comdat-1.cpp %S/../Inputs/instrprof-comdat-2.cpp
-RUN: LLVM_PROFILE_FILE=%t-comdat.profraw %run %t.d/comdat
+RUN: env LLVM_PROFILE_FILE=%t-comdat.profraw %run %t.d/comdat
 RUN: llvm-profdata merge -o %t.d/comdat.prof %t-comdat.profraw 
 RUN: llvm-cov show --instr-profile=%t.d/comdat.prof %t.d/comdat | FileCheck --check-prefix=HEADER %S/../Inputs/instrprof-comdat.h
 

``````````

</details>


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


More information about the llvm-commits mailing list