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:
parent
573121ee08
commit
8261cde3c9
5 changed files with 38 additions and 14 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue