| ... | @@ -336,39 +336,39 @@ fn buildOutputType( | ... | @@ -336,39 +336,39 @@ fn buildOutputType( |
| 336 | } else if (mem.startsWith(u8, arg, "-l")) { | 336 | } else if (mem.startsWith(u8, arg, "-l")) { |
| 337 | try system_libs.append(arg[2..]); | 337 | try system_libs.append(arg[2..]); |
| 338 | } else { | 338 | } else { |
| 339 | std.debug.print("unrecognized parameter: '{}'", .{arg}); | 339 | std.debug.print("unrecognized parameter: '{}'\n", .{arg}); |
| 340 | process.exit(1); | 340 | process.exit(1); |
| 341 | } | 341 | } |
| 342 | } else if (mem.endsWith(u8, arg, ".s") or mem.endsWith(u8, arg, ".S")) { | 342 | } 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", .{}); |
| 344 | process.exit(1); | 344 | process.exit(1); |
| 345 | } else if (mem.endsWith(u8, arg, ".o") or | 345 | } else if (mem.endsWith(u8, arg, ".o") or |
| 346 | mem.endsWith(u8, arg, ".obj") or | 346 | mem.endsWith(u8, arg, ".obj") or |
| 347 | mem.endsWith(u8, arg, ".a") or | 347 | mem.endsWith(u8, arg, ".a") or |
| 348 | mem.endsWith(u8, arg, ".lib")) | 348 | mem.endsWith(u8, arg, ".lib")) |
| 349 | { | 349 | { |
| 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", .{}); |
| 351 | process.exit(1); | 351 | process.exit(1); |
| 352 | } else if (mem.endsWith(u8, arg, ".c") or | 352 | } else if (mem.endsWith(u8, arg, ".c") or |
| 353 | mem.endsWith(u8, arg, ".cpp")) | 353 | mem.endsWith(u8, arg, ".cpp")) |
| 354 | { | 354 | { |
| 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", .{}); |
| 356 | process.exit(1); | 356 | process.exit(1); |
| 357 | } else if (mem.endsWith(u8, arg, ".so") or | 357 | } else if (mem.endsWith(u8, arg, ".so") or |
| 358 | mem.endsWith(u8, arg, ".dylib") or | 358 | mem.endsWith(u8, arg, ".dylib") or |
| 359 | mem.endsWith(u8, arg, ".dll")) | 359 | mem.endsWith(u8, arg, ".dll")) |
| 360 | { | 360 | { |
| 361 | std.debug.print("linking against dynamic libraries not yet supported", .{}); | 361 | std.debug.print("linking against dynamic libraries not yet supported\n", .{}); |
| 362 | process.exit(1); | 362 | process.exit(1); |
| 363 | } else if (mem.endsWith(u8, arg, ".zig") or mem.endsWith(u8, arg, ".zir")) { | 363 | } else if (mem.endsWith(u8, arg, ".zig") or mem.endsWith(u8, arg, ".zir")) { |
| 364 | if (root_src_file) |other| { | 364 | 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 }); |
| 366 | process.exit(1); | 366 | process.exit(1); |
| 367 | } else { | 367 | } else { |
| 368 | root_src_file = arg; | 368 | root_src_file = arg; |
| 369 | } | 369 | } |
| 370 | } else { | 370 | } else { |
| 371 | std.debug.print("unrecognized file extension of parameter '{}'", .{arg}); | 371 | std.debug.print("unrecognized file extension of parameter '{}'\n", .{arg}); |
| 372 | } | 372 | } |
| 373 | } | 373 | } |
| 374 | } | 374 | } |
| ... | @@ -385,7 +385,7 @@ fn buildOutputType( | ... | @@ -385,7 +385,7 @@ fn buildOutputType( |
| 385 | }; | 385 | }; |
| 386 | | 386 | |
| 387 | if (system_libs.items.len != 0) { | 387 | 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", .{}); |
| 389 | process.exit(1); | 389 | process.exit(1); |
| 390 | } | 390 | } |
| 391 | | 391 | |