fix godbolt cli test on non-linux-x86_64 hosts

This commit is contained in:
Andrew Kelley 2018-09-24 12:01:51 -04:00
parent 6d048aa3bf
commit 8a7737eef4
No known key found for this signature in database
GPG Key ID: 4E7CD66038A4D47C

View File

@ -96,7 +96,7 @@ fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {
assertOrPanic(std.mem.eql(u8, run_result.stderr, "All your base are belong to us.\n"));
}
fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) !void {
fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) error!void {
if (builtin.os != builtin.Os.linux or builtin.arch != builtin.Arch.x86_64) return;
const example_zig_path = try os.path.join(a, dir_path, "example.zig");