| ... | ... | @@ -336,39 +336,39 @@ fn buildOutputType( |
| 336 | 336 | } else if (mem.startsWith(u8, arg, "-l")) { |
| 337 | 337 | try system_libs.append(arg[2..]); |
| 338 | 338 | } else { |
| 339 | | std.debug.print("unrecognized parameter: '{}'", .{arg}); |
| 339 | std.debug.print("unrecognized parameter: '{}'\n", .{arg}); |
| 340 | 340 | process.exit(1); |
| 341 | 341 | } |
| 342 | 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 | 344 | process.exit(1); |
| 345 | 345 | } else if (mem.endsWith(u8, arg, ".o") or |
| 346 | 346 | mem.endsWith(u8, arg, ".obj") or |
| 347 | 347 | mem.endsWith(u8, arg, ".a") or |
| 348 | 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 | 351 | process.exit(1); |
| 352 | 352 | } else if (mem.endsWith(u8, arg, ".c") or |
| 353 | 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 | 356 | process.exit(1); |
| 357 | 357 | } else if (mem.endsWith(u8, arg, ".so") or |
| 358 | 358 | mem.endsWith(u8, arg, ".dylib") or |
| 359 | 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 | 362 | process.exit(1); |
| 363 | 363 | } else if (mem.endsWith(u8, arg, ".zig") or mem.endsWith(u8, arg, ".zir")) { |
| 364 | 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 | 366 | process.exit(1); |
| 367 | 367 | } else { |
| 368 | 368 | root_src_file = arg; |
| 369 | 369 | } |
| 370 | 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 | 385 | }; |
| 386 | 386 | |
| 387 | 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 | 389 | process.exit(1); |
| 390 | 390 | } |
| 391 | 391 | |