zig build system improvements, add some std API

* add std.buf_map.BufMap
 * add std.buf_set.BufSet
 * add std.mem.split
 * zig build system improvements (See #204)
   - automatically parses NIX_CFLAGS_COMPILE and NIX_LDFLAGS
   - add builder.addCIncludePath
   - add builder.addRPath
   - add builder.addLibPath
   - add exe.linkLibrary
This commit is contained in:
Andrew Kelley
2017-04-04 01:52:20 -04:00
parent 72fb2443e0
commit 1c6000d047
9 changed files with 297 additions and 91 deletions

View File

@@ -20,6 +20,7 @@ pub fn main() -> %void {
defer inc_allocator.deinit();
var builder = Builder.init(zig_exe, &inc_allocator.allocator);
defer builder.deinit();
root.build(&builder);
%return builder.make(leftover_arg_index);
}