Removes trailing '/' from `input`. A behavior difference has been observed between libc++ implementations. Fixing path to prevent this edge case to be reached. (https://github.com/llvm/llvm-project/issues/60634)
| 50 | // Fixing path to prevent this edge case to be reached. |
| 51 | // (https://github.com/llvm/llvm-project/issues/60634) |
| 52 | std::string fixPathForLLVM(std::string input) { |
| 53 | while (!input.empty() && input.back() == '/') input.resize(input.size() - 1); |
| 54 | return input; |
| 55 | } |
| 56 | |
| 57 | // Write each HLSL file described in `sources` in a file in `outdirPath`. |
| 58 | // Doesn't ovewrite existing files, unless `overwrite` is set to true. The |
no test coverage detected