| 184 | } |
| 185 | |
| 186 | void set_env_required(const char * key, const std::string & value) { |
| 187 | if (setenv(key, value.c_str(), 1) != 0) { |
| 188 | throw std::runtime_error("failed to set environment variable: " + std::string(key)); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | } // namespace |
| 193 |