File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
test/standalone/dependency_options Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -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.
You can’t perform that action at this time.
0 commit comments