| ... | ... | @@ -10,7 +10,14 @@ pub fn build(b: *std.Build) !void { |
| 10 | 10 | |
| 11 | 11 | const none_specified_mod = none_specified.module("dummy"); |
| 12 | 12 | if (!none_specified_mod.resolved_target.?.query.eql(b.graph.host.query)) return error.TestFailed; |
| 13 | | if (none_specified_mod.optimize.? != .Debug) return error.TestFailed; |
| 13 | const expected_optimize: std.builtin.OptimizeMode = switch (b.release_mode) { |
| 14 | .off => .Debug, |
| 15 | .any => unreachable, |
| 16 | .fast => .ReleaseFast, |
| 17 | .safe => .ReleaseSafe, |
| 18 | .small => .ReleaseSmall, |
| 19 | }; |
| 20 | if (none_specified_mod.optimize.? != expected_optimize) return error.TestFailed; |
| 14 | 21 | |
| 15 | 22 | // Passing null is the same as not specifying the option, |
| 16 | 23 | // so this should resolve to the same cached dependency instance. |