Don't copy the environment to update it

This causes problems on windows, and is wasteful anyway. The subprocess
will pick up the environment from its parent.
This commit is contained in:
Ben Jackson 2020-12-05 16:38:27 +00:00
commit 8261cde3c9
5 changed files with 38 additions and 14 deletions

View file

@ -1,12 +1,20 @@
{
"configurations": {
"simple_c_program - Launch": {
"CodeLLDB": {
"adapter": "CodeLLDB",
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/test",
"stopAtEntry": true
}
},
"lldb-vscode": {
"adapter": "lldb-vscode",
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/test",
"stopAtEntry": true
}
}
}
}

View file

@ -1,3 +1,5 @@
#include <cstdio>
#include <cstdlib>
#include <iostream>
namespace Test
@ -33,6 +35,8 @@ int main ( int argc, char ** argv )
{
int x{ 10 };
printf( "HOME: %s\n", getenv( "HOME" ) );
Test::TestStruct t{ true, {99} };
foo( t );
}