Skip to content

Commit

Permalink
fix win build
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-esir committed May 29, 2024
1 parent 1a4bd68 commit a90049a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ GenAIEnvManager::GenAIEnvManager(const std::string& path) {
#ifdef _WIN32
char* value = nullptr;
size_t len = 0;
_dupenv_s(&value, &len, ov::genai::utils::get_tokenizers_env_name().c_str());
_dupenv_s(&value, &len, ov::genai::utils::get_tokenizers_env_name());
if (value == nullptr)
_putenv_s(ov::genai::utils::get_tokenizers_env_name().c_str(), path.c_str());
_putenv_s(ov::genai::utils::get_tokenizers_env_name(), path.c_str());
#else
if (!getenv(ov::genai::utils::get_tokenizers_env_name()))
setenv(ov::genai::utils::get_tokenizers_env_name(), path.c_str(), 1);
Expand Down

0 comments on commit a90049a

Please sign in to comment.