[libc] Add environment variables to GPU libc test for AMDGPU
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 17 Mar 2023 19:06:53 +0000 (14:06 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 20 Mar 2023 18:16:58 +0000 (13:16 -0500)
commit6bd4d717d577b88e83a92ea865bb96dd5df45936
tree59f35bdbb6a0ee7f47b3cacbb78cc8504855fe70
parentd1e00b6f136ec71a4c95a7eb4fd81ec0ab547962
[libc] Add environment variables to GPU libc test for AMDGPU

This patch performs the same operation to copy over the `argv` array to
the `envp` array. This allows the GPU tests to use environment
variables.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D146322
libc/startup/gpu/amdgpu/start.cpp
libc/test/integration/startup/gpu/CMakeLists.txt
libc/test/integration/startup/gpu/args_test.cpp
libc/utils/gpu/loader/Loader.h
libc/utils/gpu/loader/Main.cpp
libc/utils/gpu/loader/amdgpu/Loader.cpp