zig build system supports building a library

See #329

Supporting work:
 * move std.cstr.Buffer0 to std.buffer.Buffer
 * add build.zig to example/shared_library/ and add an automated test
   for it
 * add std.list.List.resizeDown
 * improve std.os.makePath
   - no longer recursive
   - takes into account . and ..
 * add std.os.path.isAbsolute
 * add std.os.path.resolve
 * reimplement std.os.path.dirname
   - no longer requires an allocator
   - handles edge cases correctly
This commit is contained in:
Andrew Kelley
2017-04-21 01:56:12 -04:00
parent 599215cee4
commit fb492d19eb
17 changed files with 642 additions and 246 deletions

View File

@@ -1,7 +1,3 @@
export fn add(a: i32, b: i32) -> i32 {
a + b
}
export fn hang() -> unreachable {
while (true) { }
}