| 139 | } |
| 140 | |
| 141 | void CompileOptions::write_temporary(const char *path, const char *data, u32 size) |
| 142 | { |
| 143 | File *file = _output_filesystem.open(path, FileOpenMode::WRITE); |
| 144 | if (file->is_open()) |
| 145 | file->write(data, size); |
| 146 | _output_filesystem.close(*file); |
| 147 | } |
| 148 | |
| 149 | void CompileOptions::write_temporary(const char *path, const Buffer &data) |
| 150 | { |