Revert "added -- to pass args to zig build commands"

This reverts commit d4e56ae6ae15ed1b062b0d775893abb5579fc66d.

This broke the build
This commit is contained in:
Andrew Kelley 2019-12-16 16:36:42 -05:00
parent 744133acb1
commit b1abe4a172
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
2 changed files with 0 additions and 6 deletions

View File

@ -54,7 +54,6 @@ pub const Builder = struct {
is_release: bool,
override_lib_dir: ?[]const u8,
vcpkg_root: VcpkgRoot,
args: ?[][]const u8,
pkg_config_pkg_list: ?(PkgConfigError![]const PkgConfigPkg) = null,
const PkgConfigError = error{
@ -161,7 +160,6 @@ pub const Builder = struct {
.override_lib_dir = null,
.install_path = undefined,
.vcpkg_root = VcpkgRoot{ .Unattempted = {} },
.args = null,
};
try self.top_level_steps.append(&self.install_tls);
try self.top_level_steps.append(&self.uninstall_tls);

View File

@ -98,10 +98,6 @@ pub fn main() !void {
builder.verbose_cimport = true;
} else if (mem.eql(u8, arg, "--verbose-cc")) {
builder.verbose_cc = true;
} else if (mem.eql(u8, arg, "--")) {
var arg_slice = try process.argsAlloc(allocator);
builder.args = arg_slice[arg_it.index..];
break;
} else {
warn("Unrecognized argument: {}\n\n", .{arg});
return usageAndErr(builder, false, stderr_stream);