diff options
author | Harini0924 <harinidonthula@google.com> | 2024-08-29 10:00:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-29 10:00:58 -0700 |
commit | 178392454e076624674b4a7ddf3fc8bda2e94f0e (patch) | |
tree | 311ff798dcc60cfa7b1075b73534e16941f3e4a5 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | eed135fea72b544426349e6461a0ca142c27967e (diff) | |
download | llvm-178392454e076624674b4a7ddf3fc8bda2e94f0e.zip llvm-178392454e076624674b4a7ddf3fc8bda2e94f0e.tar.gz llvm-178392454e076624674b4a7ddf3fc8bda2e94f0e.tar.bz2 |
[llvm-lit] Print environment variables when using env without subcommand (#98414)
This patch addresses an issue with lit's internal shell when env is
without any arguments, it fails with exit code 127 because `env`
requires a subcommand. This patch addresses the issue by encoding the
command to properly return environment variables even when no arguments
are provided.
The error occurred when running the command
` LIT_USE_INTERNAL_SHELL=1 ninja check-llvm`.
fixes: #102383
This is part of the test cleanups proposed in the RFC: [[RFC] Enabling
the Lit Internal Shell by
Default](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions