| ... | ... | @@ -608,6 +608,7 @@ pub const ExecutableOptions = struct { |
| 608 | 608 | root_source_file: ?LazyPath = null, |
| 609 | 609 | version: ?std.SemanticVersion = null, |
| 610 | 610 | optimize: std.builtin.OptimizeMode = .Debug, |
| 611 | code_model: std.builtin.CodeModel = .default, |
| 611 | 612 | linkage: ?Step.Compile.Linkage = null, |
| 612 | 613 | max_rss: usize = 0, |
| 613 | 614 | link_libc: ?bool = null, |
| ... | ... | @@ -644,6 +645,7 @@ pub fn addExecutable(b: *Build, options: ExecutableOptions) *Step.Compile { |
| 644 | 645 | .omit_frame_pointer = options.omit_frame_pointer, |
| 645 | 646 | .sanitize_thread = options.sanitize_thread, |
| 646 | 647 | .error_tracing = options.error_tracing, |
| 648 | .code_model = options.code_model, |
| 647 | 649 | }, |
| 648 | 650 | .version = options.version, |
| 649 | 651 | .kind = .exe, |
| ... | ... | @@ -662,6 +664,7 @@ pub const ObjectOptions = struct { |
| 662 | 664 | /// To choose the same computer as the one building the package, pass the |
| 663 | 665 | /// `host` field of the package's `Build` instance. |
| 664 | 666 | target: ResolvedTarget, |
| 667 | code_model: std.builtin.CodeModel = .default, |
| 665 | 668 | optimize: std.builtin.OptimizeMode, |
| 666 | 669 | max_rss: usize = 0, |
| 667 | 670 | link_libc: ?bool = null, |
| ... | ... | @@ -692,6 +695,7 @@ pub fn addObject(b: *Build, options: ObjectOptions) *Step.Compile { |
| 692 | 695 | .omit_frame_pointer = options.omit_frame_pointer, |
| 693 | 696 | .sanitize_thread = options.sanitize_thread, |
| 694 | 697 | .error_tracing = options.error_tracing, |
| 698 | .code_model = options.code_model, |
| 695 | 699 | }, |
| 696 | 700 | .kind = .obj, |
| 697 | 701 | .max_rss = options.max_rss, |
| ... | ... | @@ -707,6 +711,7 @@ pub const SharedLibraryOptions = struct { |
| 707 | 711 | /// `host` field of the package's `Build` instance. |
| 708 | 712 | target: ResolvedTarget, |
| 709 | 713 | optimize: std.builtin.OptimizeMode, |
| 714 | code_model: std.builtin.CodeModel = .default, |
| 710 | 715 | root_source_file: ?LazyPath = null, |
| 711 | 716 | version: ?std.SemanticVersion = null, |
| 712 | 717 | max_rss: usize = 0, |
| ... | ... | @@ -744,6 +749,7 @@ pub fn addSharedLibrary(b: *Build, options: SharedLibraryOptions) *Step.Compile |
| 744 | 749 | .omit_frame_pointer = options.omit_frame_pointer, |
| 745 | 750 | .sanitize_thread = options.sanitize_thread, |
| 746 | 751 | .error_tracing = options.error_tracing, |
| 752 | .code_model = options.code_model, |
| 747 | 753 | }, |
| 748 | 754 | .kind = .lib, |
| 749 | 755 | .linkage = .dynamic, |
| ... | ... | @@ -763,6 +769,7 @@ pub const StaticLibraryOptions = struct { |
| 763 | 769 | /// `host` field of the package's `Build` instance. |
| 764 | 770 | target: ResolvedTarget, |
| 765 | 771 | optimize: std.builtin.OptimizeMode, |
| 772 | code_model: std.builtin.CodeModel = .default, |
| 766 | 773 | version: ?std.SemanticVersion = null, |
| 767 | 774 | max_rss: usize = 0, |
| 768 | 775 | link_libc: ?bool = null, |
| ... | ... | @@ -793,6 +800,7 @@ pub fn addStaticLibrary(b: *Build, options: StaticLibraryOptions) *Step.Compile |
| 793 | 800 | .omit_frame_pointer = options.omit_frame_pointer, |
| 794 | 801 | .sanitize_thread = options.sanitize_thread, |
| 795 | 802 | .error_tracing = options.error_tracing, |
| 803 | .code_model = options.code_model, |
| 796 | 804 | }, |
| 797 | 805 | .kind = .lib, |
| 798 | 806 | .linkage = .static, |