| 587 | } |
| 588 | |
| 589 | void cmExecuteProcessCommandAppend(std::vector<char>& output, char const* data, |
| 590 | std::size_t length) |
| 591 | { |
| 592 | #if defined(__APPLE__) |
| 593 | // HACK on Apple to work around bug with inserting at the |
| 594 | // end of an empty vector. This resulted in random failures |
| 595 | // that were hard to reproduce. |
| 596 | if (output.empty() && length > 0) { |
| 597 | output.push_back(data[0]); |
| 598 | ++data; |
| 599 | --length; |
| 600 | } |
| 601 | #endif |
| 602 | cm::append(output, data, data + length); |
| 603 | } |
| 604 | } |
no test coverage detected
searching dependent graphs…