convert assemble and link tests to zig build system

This commit is contained in:
Andrew Kelley
2017-04-19 14:00:12 -04:00
parent 666435195f
commit d1e01e43d3
11 changed files with 921 additions and 541 deletions

View File

@@ -683,3 +683,10 @@ int os_delete_file(Buf *path) {
void os_init(void) {
srand((unsigned)time(NULL));
}
int os_rename(Buf *src_path, Buf *dest_path) {
if (rename(buf_ptr(src_path), buf_ptr(dest_path)) == -1) {
return ErrorFileSystem;
}
return 0;
}