| ... | @@ -454,6 +454,10 @@ pub const ExecutableOptions = struct { | ... | @@ -454,6 +454,10 @@ pub const ExecutableOptions = struct { |
| 454 | optimize: std.builtin.Mode = .Debug, | 454 | optimize: std.builtin.Mode = .Debug, |
| 455 | linkage: ?CompileStep.Linkage = null, | 455 | linkage: ?CompileStep.Linkage = null, |
| 456 | max_rss: usize = 0, | 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 | pub fn addExecutable(b: *Build, options: ExecutableOptions) *CompileStep { | 463 | pub fn addExecutable(b: *Build, options: ExecutableOptions) *CompileStep { |
| ... | @@ -466,6 +470,10 @@ pub fn addExecutable(b: *Build, options: ExecutableOptions) *CompileStep { | ... | @@ -466,6 +470,10 @@ pub fn addExecutable(b: *Build, options: ExecutableOptions) *CompileStep { |
| 466 | .kind = .exe, | 470 | .kind = .exe, |
| 467 | .linkage = options.linkage, | 471 | .linkage = options.linkage, |
| 468 | .max_rss = options.max_rss, | 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,6 +483,10 @@ pub const ObjectOptions = struct { |
| 475 | target: CrossTarget, | 483 | target: CrossTarget, |
| 476 | optimize: std.builtin.Mode, | 484 | optimize: std.builtin.Mode, |
| 477 | max_rss: usize = 0, | 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 | pub fn addObject(b: *Build, options: ObjectOptions) *CompileStep { | 492 | pub fn addObject(b: *Build, options: ObjectOptions) *CompileStep { |
| ... | @@ -485,6 +497,10 @@ pub fn addObject(b: *Build, options: ObjectOptions) *CompileStep { | ... | @@ -485,6 +497,10 @@ pub fn addObject(b: *Build, options: ObjectOptions) *CompileStep { |
| 485 | .optimize = options.optimize, | 497 | .optimize = options.optimize, |
| 486 | .kind = .obj, | 498 | .kind = .obj, |
| 487 | .max_rss = options.max_rss, | 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,6 +511,10 @@ pub const SharedLibraryOptions = struct { |
| 495 | target: CrossTarget, | 511 | target: CrossTarget, |
| 496 | optimize: std.builtin.Mode, | 512 | optimize: std.builtin.Mode, |
| 497 | max_rss: usize = 0, | 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 | pub fn addSharedLibrary(b: *Build, options: SharedLibraryOptions) *CompileStep { | 520 | pub fn addSharedLibrary(b: *Build, options: SharedLibraryOptions) *CompileStep { |
| ... | @@ -507,6 +527,10 @@ pub fn addSharedLibrary(b: *Build, options: SharedLibraryOptions) *CompileStep { | ... | @@ -507,6 +527,10 @@ pub fn addSharedLibrary(b: *Build, options: SharedLibraryOptions) *CompileStep { |
| 507 | .target = options.target, | 527 | .target = options.target, |
| 508 | .optimize = options.optimize, | 528 | .optimize = options.optimize, |
| 509 | .max_rss = options.max_rss, | 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,6 +541,10 @@ pub const StaticLibraryOptions = struct { |
| 517 | optimize: std.builtin.Mode, | 541 | optimize: std.builtin.Mode, |
| 518 | version: ?std.builtin.Version = null, | 542 | version: ?std.builtin.Version = null, |
| 519 | max_rss: usize = 0, | 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 | pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *CompileStep { | 550 | pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *CompileStep { |
| ... | @@ -529,6 +557,10 @@ pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *CompileStep { | ... | @@ -529,6 +557,10 @@ pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *CompileStep { |
| 529 | .target = options.target, | 557 | .target = options.target, |
| 530 | .optimize = options.optimize, | 558 | .optimize = options.optimize, |
| 531 | .max_rss = options.max_rss, | 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,6 +573,10 @@ pub const TestOptions = struct { |
| 541 | max_rss: usize = 0, | 573 | max_rss: usize = 0, |
| 542 | filter: ?[]const u8 = null, | 574 | filter: ?[]const u8 = null, |
| 543 | test_runner: ?[]const u8 = null, | 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 | pub fn addTest(b: *Build, options: TestOptions) *CompileStep { | 582 | pub fn addTest(b: *Build, options: TestOptions) *CompileStep { |
| ... | @@ -553,6 +589,10 @@ pub fn addTest(b: *Build, options: TestOptions) *CompileStep { | ... | @@ -553,6 +589,10 @@ pub fn addTest(b: *Build, options: TestOptions) *CompileStep { |
| 553 | .max_rss = options.max_rss, | 589 | .max_rss = options.max_rss, |
| 554 | .filter = options.filter, | 590 | .filter = options.filter, |
| 555 | .test_runner = options.test_runner, | 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 | |