Move savedArgv into libmain

`savedArgv` is not accessible by plugins when defined in main binary.
Moving it into one of the nix lib fix the problem.
This commit is contained in:
Jean-François Roche
2022-10-28 12:19:37 +02:00
parent b154070ab0
commit cd86eeb693
2 changed files with 1 additions and 1 deletions

View File

@@ -33,6 +33,7 @@
namespace nix {
char * * savedArgv;
static bool gcWarning = true;

View File

@@ -53,7 +53,6 @@ static bool haveInternet()
}
std::string programPath;
char * * savedArgv;
struct HelpRequested { };