[llvm] [LLVM][test][nfc] Prefixing JITDUMPDIR environment variable with env (PR #98370)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 12:05:47 PDT 2024


https://github.com/connieyzhu created https://github.com/llvm/llvm-project/pull/98370

The RUN line attempts to set the JITDUMPDIR environment variable, which fails in llvm-lit's internal shell. This patch prefixes JITDUMPDIR with env so that the behavior of setting the variable is as expected in the internal shell.

>From 8583034747585436f405ba755ab23492328aaad7 Mon Sep 17 00:00:00 2001
From: Connie Zhu <connieyzhu at google.com>
Date: Wed, 10 Jul 2024 18:54:55 +0000
Subject: [PATCH] [LLVM][test][nfc] Prefixing JITDUMPDIR environment variable
 with env

The RUN line attempts to set the JITDUMPDIR environment variable,
which fails in llvm-lit's internal shell. This patch prefixes
JITDUMPDIR with env so that the behavior of setting the variable is
as expected in the internal shell.
---
 llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s b/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s
index a2dc6edccd375..bec3cead3cd4f 100644
--- a/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s
+++ b/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s
@@ -6,7 +6,7 @@
 # RUN: rm -rf %t && mkdir -p %t
 # RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \
 # RUN:     -filetype=obj -o %t/ELF_x86-64_perf.o %s
-# RUN: JITDUMPDIR="%t" llvm-jitlink -perf-support \
+# RUN: env JITDUMPDIR="%t" llvm-jitlink -perf-support \
 # RUN:     %t/ELF_x86-64_perf.o
 # RUN: test -f %t/.debug/jit/llvm-IR-jit-*/jit-*.dump
 



More information about the llvm-commits mailing list