| 348 | } |
| 349 | |
| 350 | std::string cmCustomCommandGenerator::GetCommand(unsigned int c) const |
| 351 | { |
| 352 | std::vector<std::string> emulator = this->GetCrossCompilingEmulator(c); |
| 353 | if (!emulator.empty()) { |
| 354 | return emulator[0]; |
| 355 | } |
| 356 | if (char const* location = this->GetArgv0Location(c)) { |
| 357 | return std::string(location); |
| 358 | } |
| 359 | |
| 360 | return this->CommandLines[c][0]; |
| 361 | } |
| 362 | |
| 363 | static std::string escapeForShellOldStyle(std::string const& str) |
| 364 | { |
nothing calls this directly
no test coverage detected