| ... | @@ -26,6 +26,7 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step { | ... | @@ -26,6 +26,7 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step { |
| 26 | macho_step.dependOn(testLayout(b, .{ .target = default_target })); | 26 | macho_step.dependOn(testLayout(b, .{ .target = default_target })); |
| 27 | macho_step.dependOn(testMhExecuteHeader(b, .{ .target = default_target })); | 27 | macho_step.dependOn(testMhExecuteHeader(b, .{ .target = default_target })); |
| 28 | macho_step.dependOn(testNoDeadStrip(b, .{ .target = default_target })); | 28 | macho_step.dependOn(testNoDeadStrip(b, .{ .target = default_target })); |
| | 29 | macho_step.dependOn(testNoExportsDylib(b, .{ .target = default_target })); |
| 29 | macho_step.dependOn(testRelocatable(b, .{ .target = default_target })); | 30 | macho_step.dependOn(testRelocatable(b, .{ .target = default_target })); |
| 30 | macho_step.dependOn(testRelocatableZig(b, .{ .target = default_target })); | 31 | macho_step.dependOn(testRelocatableZig(b, .{ .target = default_target })); |
| 31 | macho_step.dependOn(testSectionBoundarySymbols(b, .{ .target = default_target })); | 32 | macho_step.dependOn(testSectionBoundarySymbols(b, .{ .target = default_target })); |
| ... | @@ -772,6 +773,19 @@ fn testNoDeadStrip(b: *Build, opts: Options) *Step { | ... | @@ -772,6 +773,19 @@ fn testNoDeadStrip(b: *Build, opts: Options) *Step { |
| 772 | return test_step; | 773 | return test_step; |
| 773 | } | 774 | } |
| 774 | | 775 | |
| | 776 | fn testNoExportsDylib(b: *Build, opts: Options) *Step { |
| | 777 | const test_step = addTestStep(b, "macho-no-exports-dylib", opts); |
| | 778 | |
| | 779 | const dylib = addSharedLibrary(b, opts, .{ .name = "a", .c_source_bytes = "static void abc() {}" }); |
| | 780 | |
| | 781 | const check = dylib.checkObject(); |
| | 782 | check.checkInSymtab(); |
| | 783 | check.checkNotPresent("external _abc"); |
| | 784 | test_step.dependOn(&check.step); |
| | 785 | |
| | 786 | return test_step; |
| | 787 | } |
| | 788 | |
| 775 | fn testNeededFramework(b: *Build, opts: Options) *Step { | 789 | fn testNeededFramework(b: *Build, opts: Options) *Step { |
| 776 | const test_step = addTestStep(b, "macho-needed-framework", opts); | 790 | const test_step = addTestStep(b, "macho-needed-framework", opts); |
| 777 | | 791 | |