authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-04 18:38:42-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-04 18:38:42-07:00
log8824491fc7f28116838b670f9ab46d6ba0d28276
tree81a0df2b2a23fb056d1575c79ec7838c8f2fb052
parentd61a9e37ae8f140407d1369500d21efbe2b198ab

stage2: add missing newlines to cli error messages


1 files changed, 8 insertions(+), 8 deletions(-)

src-self-hosted/main.zig+8-8
......@@ -336,39 +336,39 @@ fn buildOutputType(
336336 } else if (mem.startsWith(u8, arg, "-l")) {
337337 try system_libs.append(arg[2..]);
338338 } else {
339 std.debug.print("unrecognized parameter: '{}'", .{arg});
339 std.debug.print("unrecognized parameter: '{}'\n", .{arg});
340340 process.exit(1);
341341 }
342342 } else if (mem.endsWith(u8, arg, ".s") or mem.endsWith(u8, arg, ".S")) {
343 std.debug.print("assembly files not supported yet", .{});
343 std.debug.print("assembly files not supported yet\n", .{});
344344 process.exit(1);
345345 } else if (mem.endsWith(u8, arg, ".o") or
346346 mem.endsWith(u8, arg, ".obj") or
347347 mem.endsWith(u8, arg, ".a") or
348348 mem.endsWith(u8, arg, ".lib"))
349349 {
350 std.debug.print("object files and static libraries not supported yet", .{});
350 std.debug.print("object files and static libraries not supported yet\n", .{});
351351 process.exit(1);
352352 } else if (mem.endsWith(u8, arg, ".c") or
353353 mem.endsWith(u8, arg, ".cpp"))
354354 {
355 std.debug.print("compilation of C and C++ source code requires LLVM extensions which are not implemented yet", .{});
355 std.debug.print("compilation of C and C++ source code requires LLVM extensions which are not implemented yet\n", .{});
356356 process.exit(1);
357357 } else if (mem.endsWith(u8, arg, ".so") or
358358 mem.endsWith(u8, arg, ".dylib") or
359359 mem.endsWith(u8, arg, ".dll"))
360360 {
361 std.debug.print("linking against dynamic libraries not yet supported", .{});
361 std.debug.print("linking against dynamic libraries not yet supported\n", .{});
362362 process.exit(1);
363363 } else if (mem.endsWith(u8, arg, ".zig") or mem.endsWith(u8, arg, ".zir")) {
364364 if (root_src_file) |other| {
365 std.debug.print("found another zig file '{}' after root source file '{}'", .{ arg, other });
365 std.debug.print("found another zig file '{}' after root source file '{}'\n", .{ arg, other });
366366 process.exit(1);
367367 } else {
368368 root_src_file = arg;
369369 }
370370 } else {
371 std.debug.print("unrecognized file extension of parameter '{}'", .{arg});
371 std.debug.print("unrecognized file extension of parameter '{}'\n", .{arg});
372372 }
373373 }
374374 }
......@@ -385,7 +385,7 @@ fn buildOutputType(
385385 };
386386
387387 if (system_libs.items.len != 0) {
388 std.debug.print("linking against system libraries not yet supported", .{});
388 std.debug.print("linking against system libraries not yet supported\n", .{});
389389 process.exit(1);
390390 }
391391