mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 09:15:18 +02:00
explicitly set env var internally.
This commit is contained in:
@@ -402,4 +402,13 @@ extern "C"
|
||||
{
|
||||
return gpttype_clear_state_kv(true);
|
||||
}
|
||||
|
||||
void set_environment_variable(const char * identifier, const char * value)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
_putenv_s(identifier, value);
|
||||
#else
|
||||
setenv(identifier, value, 1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user