| ... | ... | @@ -37,27 +37,10 @@ pub fn build(b: *std.Build) void { |
| 37 | 37 | lib.use_lld = false; |
| 38 | 38 | lib.root_module.addObject(c_obj); |
| 39 | 39 | |
| 40 | | // Verify the result contains the features from the C Object file. |
| 41 | | const check = lib.checkObject(); |
| 42 | | check.checkInHeaders(); |
| 43 | | check.checkExact("name target_features"); |
| 44 | | check.checkExact("features 14"); |
| 45 | | check.checkExact("+ atomics"); |
| 46 | | check.checkExact("+ bulk-memory"); |
| 47 | | check.checkExact("+ exception-handling"); |
| 48 | | check.checkExact("+ extended-const"); |
| 49 | | check.checkExact("+ half-precision"); |
| 50 | | check.checkExact("+ multimemory"); |
| 51 | | check.checkExact("+ multivalue"); |
| 52 | | check.checkExact("+ mutable-globals"); |
| 53 | | check.checkExact("+ nontrapping-fptoint"); |
| 54 | | check.checkExact("+ reference-types"); |
| 55 | | check.checkExact("+ relaxed-simd"); |
| 56 | | check.checkExact("+ sign-ext"); |
| 57 | | check.checkExact("+ simd128"); |
| 58 | | check.checkExact("+ tail-call"); |
| 40 | lib.expect_errors = .{ .contains = "error: object requires atomics but specified target features exclude atomics" }; |
| 41 | _ = lib.getEmittedBin(); |
| 59 | 42 | |
| 60 | 43 | const test_step = b.step("test", "Run linker test"); |
| 61 | | test_step.dependOn(&check.step); |
| 44 | test_step.dependOn(&lib.step); |
| 62 | 45 | b.default_step = test_step; |
| 63 | 46 | } |