| ... | ... | @@ -10,6 +10,7 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step { |
| 10 | 10 | |
| 11 | 11 | macho_step.dependOn(testDeadStrip(b, .{ .target = default_target })); |
| 12 | 12 | macho_step.dependOn(testEntryPointDylib(b, .{ .target = default_target })); |
| 13 | macho_step.dependOn(testMhExecuteHeader(b, .{ .target = default_target })); |
| 13 | 14 | macho_step.dependOn(testSectionBoundarySymbols(b, .{ .target = default_target })); |
| 14 | 15 | macho_step.dependOn(testSegmentBoundarySymbols(b, .{ .target = default_target })); |
| 15 | 16 | |
| ... | ... | @@ -161,6 +162,19 @@ fn testEntryPointDylib(b: *Build, opts: Options) *Step { |
| 161 | 162 | return test_step; |
| 162 | 163 | } |
| 163 | 164 | |
| 165 | fn testMhExecuteHeader(b: *Build, opts: Options) *Step { |
| 166 | const test_step = addTestStep(b, "macho-mh-execute-header", opts); |
| 167 | |
| 168 | const exe = addExecutable(b, opts, .{ .name = "main", .c_source_bytes = "int main() { return 0; }" }); |
| 169 | |
| 170 | const check = exe.checkObject(); |
| 171 | check.checkInSymtab(); |
| 172 | check.checkContains("[referenced dynamically] external __mh_execute_header"); |
| 173 | test_step.dependOn(&check.step); |
| 174 | |
| 175 | return test_step; |
| 176 | } |
| 177 | |
| 164 | 178 | fn testNeededFramework(b: *Build, opts: Options) *Step { |
| 165 | 179 | const test_step = addTestStep(b, "macho-needed-framework", opts); |
| 166 | 180 | |