[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:04:54 PDT 2024


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

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

>From d733a28b36c0e05ebd592f95d883251c289bce5b Mon Sep 17 00:00:00 2001
From: Harini <harinidonthula at google.com>
Date: Tue, 6 Aug 2024 18:52:20 +0000
Subject: [PATCH] [llvm-lit] lit internal shell -Fix Command Not Found Error

Added `env` in front of `LLVM_PROFILE_FILE` to properly set the environment
variable correctly.
---
 compiler-rt/test/profile/Linux/instrprof-comdat.test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 



More information about the llvm-commits mailing list