| ... | ... | @@ -454,6 +454,10 @@ pub const ExecutableOptions = struct { |
| 454 | 454 | optimize: std.builtin.Mode = .Debug, |
| 455 | 455 | linkage: ?CompileStep.Linkage = null, |
| 456 | 456 | max_rss: usize = 0, |
| 457 | link_libc: ?bool = null, |
| 458 | single_threaded: ?bool = null, |
| 459 | use_llvm: ?bool = null, |
| 460 | use_lld: ?bool = null, |
| 457 | 461 | }; |
| 458 | 462 | |
| 459 | 463 | pub fn addExecutable(b: *Build, options: ExecutableOptions) *CompileStep { |
| ... | ... | @@ -466,6 +470,10 @@ pub fn addExecutable(b: *Build, options: ExecutableOptions) *CompileStep { |
| 466 | 470 | .kind = .exe, |
| 467 | 471 | .linkage = options.linkage, |
| 468 | 472 | .max_rss = options.max_rss, |
| 473 | .link_libc = options.link_libc, |
| 474 | .single_threaded = options.single_threaded, |
| 475 | .use_llvm = options.use_llvm, |
| 476 | .use_lld = options.use_lld, |
| 469 | 477 | }); |
| 470 | 478 | } |
| 471 | 479 | |
| ... | ... | @@ -475,6 +483,10 @@ pub const ObjectOptions = struct { |
| 475 | 483 | target: CrossTarget, |
| 476 | 484 | optimize: std.builtin.Mode, |
| 477 | 485 | max_rss: usize = 0, |
| 486 | link_libc: ?bool = null, |
| 487 | single_threaded: ?bool = null, |
| 488 | use_llvm: ?bool = null, |
| 489 | use_lld: ?bool = null, |
| 478 | 490 | }; |
| 479 | 491 | |
| 480 | 492 | pub fn addObject(b: *Build, options: ObjectOptions) *CompileStep { |
| ... | ... | @@ -485,6 +497,10 @@ pub fn addObject(b: *Build, options: ObjectOptions) *CompileStep { |
| 485 | 497 | .optimize = options.optimize, |
| 486 | 498 | .kind = .obj, |
| 487 | 499 | .max_rss = options.max_rss, |
| 500 | .link_libc = options.link_libc, |
| 501 | .single_threaded = options.single_threaded, |
| 502 | .use_llvm = options.use_llvm, |
| 503 | .use_lld = options.use_lld, |
| 488 | 504 | }); |
| 489 | 505 | } |
| 490 | 506 | |
| ... | ... | @@ -495,6 +511,10 @@ pub const SharedLibraryOptions = struct { |
| 495 | 511 | target: CrossTarget, |
| 496 | 512 | optimize: std.builtin.Mode, |
| 497 | 513 | max_rss: usize = 0, |
| 514 | link_libc: ?bool = null, |
| 515 | single_threaded: ?bool = null, |
| 516 | use_llvm: ?bool = null, |
| 517 | use_lld: ?bool = null, |
| 498 | 518 | }; |
| 499 | 519 | |
| 500 | 520 | pub fn addSharedLibrary(b: *Build, options: SharedLibraryOptions) *CompileStep { |
| ... | ... | @@ -507,6 +527,10 @@ pub fn addSharedLibrary(b: *Build, options: SharedLibraryOptions) *CompileStep { |
| 507 | 527 | .target = options.target, |
| 508 | 528 | .optimize = options.optimize, |
| 509 | 529 | .max_rss = options.max_rss, |
| 530 | .link_libc = options.link_libc, |
| 531 | .single_threaded = options.single_threaded, |
| 532 | .use_llvm = options.use_llvm, |
| 533 | .use_lld = options.use_lld, |
| 510 | 534 | }); |
| 511 | 535 | } |
| 512 | 536 | |
| ... | ... | @@ -517,6 +541,10 @@ pub const StaticLibraryOptions = struct { |
| 517 | 541 | optimize: std.builtin.Mode, |
| 518 | 542 | version: ?std.builtin.Version = null, |
| 519 | 543 | max_rss: usize = 0, |
| 544 | link_libc: ?bool = null, |
| 545 | single_threaded: ?bool = null, |
| 546 | use_llvm: ?bool = null, |
| 547 | use_lld: ?bool = null, |
| 520 | 548 | }; |
| 521 | 549 | |
| 522 | 550 | pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *CompileStep { |
| ... | ... | @@ -529,6 +557,10 @@ pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *CompileStep { |
| 529 | 557 | .target = options.target, |
| 530 | 558 | .optimize = options.optimize, |
| 531 | 559 | .max_rss = options.max_rss, |
| 560 | .link_libc = options.link_libc, |
| 561 | .single_threaded = options.single_threaded, |
| 562 | .use_llvm = options.use_llvm, |
| 563 | .use_lld = options.use_lld, |
| 532 | 564 | }); |
| 533 | 565 | } |
| 534 | 566 | |
| ... | ... | @@ -541,6 +573,10 @@ pub const TestOptions = struct { |
| 541 | 573 | max_rss: usize = 0, |
| 542 | 574 | filter: ?[]const u8 = null, |
| 543 | 575 | test_runner: ?[]const u8 = null, |
| 576 | link_libc: ?bool = null, |
| 577 | single_threaded: ?bool = null, |
| 578 | use_llvm: ?bool = null, |
| 579 | use_lld: ?bool = null, |
| 544 | 580 | }; |
| 545 | 581 | |
| 546 | 582 | pub fn addTest(b: *Build, options: TestOptions) *CompileStep { |
| ... | ... | @@ -553,6 +589,10 @@ pub fn addTest(b: *Build, options: TestOptions) *CompileStep { |
| 553 | 589 | .max_rss = options.max_rss, |
| 554 | 590 | .filter = options.filter, |
| 555 | 591 | .test_runner = options.test_runner, |
| 592 | .link_libc = options.link_libc, |
| 593 | .single_threaded = options.single_threaded, |
| 594 | .use_llvm = options.use_llvm, |
| 595 | .use_lld = options.use_lld, |
| 556 | 596 | }); |
| 557 | 597 | } |
| 558 | 598 | |