| ... | @@ -2455,29 +2455,25 @@ pub fn addStackTraceTests( | ... | @@ -2455,29 +2455,25 @@ pub fn addStackTraceTests( |
| 2455 | }; | 2455 | }; |
| 2456 | stack_traces.addCases(host_cases, b.graph.host.result.os.tag); | 2456 | stack_traces.addCases(host_cases, b.graph.host.result.os.tag); |
| 2457 | | 2457 | |
| 2458 | if (b.enable_wine) { | 2458 | const wine_cases = b.allocator.create(StackTracesContext) catch @panic("OOM"); |
| 2459 | const wine_cases = b.allocator.create(StackTracesContext) catch @panic("OOM"); | 2459 | wine_cases.* = .{ |
| 2460 | wine_cases.* = .{ | 2460 | .b = b, |
| 2461 | .b = b, | 2461 | .step = step, |
| 2462 | .step = step, | 2462 | .test_filters = test_filters, |
| 2463 | .test_filters = test_filters, | 2463 | .targets = wineAndCompatible32bit(b, skip_non_native), |
| 2464 | .targets = wineAndCompatible32bit(b, skip_non_native), | 2464 | .convert_exe = convert_exe, |
| 2465 | .convert_exe = convert_exe, | 2465 | }; |
| 2466 | }; | 2466 | stack_traces.addCases(wine_cases, .windows); |
| 2467 | stack_traces.addCases(wine_cases, .windows); | | |
| 2468 | } | | |
| 2469 | | 2467 | |
| 2470 | if (b.enable_darling) { | 2468 | const darling_cases = b.allocator.create(StackTracesContext) catch @panic("OOM"); |
| 2471 | const darling_cases = b.allocator.create(StackTracesContext) catch @panic("OOM"); | 2469 | darling_cases.* = .{ |
| 2472 | darling_cases.* = .{ | 2470 | .b = b, |
| 2473 | .b = b, | 2471 | .step = step, |
| 2474 | .step = step, | 2472 | .test_filters = test_filters, |
| 2475 | .test_filters = test_filters, | 2473 | .targets = darlingTargets(b), |
| 2476 | .targets = darlingTargets(b), | 2474 | .convert_exe = convert_exe, |
| 2477 | .convert_exe = convert_exe, | 2475 | }; |
| 2478 | }; | 2476 | stack_traces.addCases(darling_cases, .macos); |
| 2479 | stack_traces.addCases(darling_cases, .macos); | | |
| 2480 | } | | |
| 2481 | | 2477 | |
| 2482 | return step; | 2478 | return step; |
| 2483 | } | 2479 | } |
| ... | @@ -2510,31 +2506,27 @@ pub fn addErrorTraceTests( | ... | @@ -2510,31 +2506,27 @@ pub fn addErrorTraceTests( |
| 2510 | }; | 2506 | }; |
| 2511 | error_traces.addCases(host_cases, b.graph.host.result.os.tag); | 2507 | error_traces.addCases(host_cases, b.graph.host.result.os.tag); |
| 2512 | | 2508 | |
| 2513 | if (b.enable_wine) { | 2509 | const wine_cases = b.allocator.create(ErrorTracesContext) catch @panic("OOM"); |
| 2514 | const wine_cases = b.allocator.create(ErrorTracesContext) catch @panic("OOM"); | 2510 | wine_cases.* = .{ |
| 2515 | wine_cases.* = .{ | 2511 | .b = b, |
| 2516 | .b = b, | 2512 | .step = step, |
| 2517 | .step = step, | 2513 | .test_filters = test_filters, |
| 2518 | .test_filters = test_filters, | 2514 | .targets = wineAndCompatible32bit(b, skip_non_native), |
| 2519 | .targets = wineAndCompatible32bit(b, skip_non_native), | 2515 | .optimize_modes = optimize_modes, |
| 2520 | .optimize_modes = optimize_modes, | 2516 | .convert_exe = convert_exe, |
| 2521 | .convert_exe = convert_exe, | 2517 | }; |
| 2522 | }; | 2518 | error_traces.addCases(wine_cases, .windows); |
| 2523 | error_traces.addCases(wine_cases, .windows); | | |
| 2524 | } | | |
| 2525 | | 2519 | |
| 2526 | if (b.enable_darling) { | 2520 | const darling_cases = b.allocator.create(ErrorTracesContext) catch @panic("OOM"); |
| 2527 | const darling_cases = b.allocator.create(ErrorTracesContext) catch @panic("OOM"); | 2521 | darling_cases.* = .{ |
| 2528 | darling_cases.* = .{ | 2522 | .b = b, |
| 2529 | .b = b, | 2523 | .step = step, |
| 2530 | .step = step, | 2524 | .test_filters = test_filters, |
| 2531 | .test_filters = test_filters, | 2525 | .targets = darlingTargets(b), |
| 2532 | .targets = darlingTargets(b), | 2526 | .optimize_modes = optimize_modes, |
| 2533 | .optimize_modes = optimize_modes, | 2527 | .convert_exe = convert_exe, |
| 2534 | .convert_exe = convert_exe, | 2528 | }; |
| 2535 | }; | 2529 | error_traces.addCases(darling_cases, .macos); |
| 2536 | error_traces.addCases(darling_cases, .macos); | | |
| 2537 | } | | |
| 2538 | | 2530 | |
| 2539 | return step; | 2531 | return step; |
| 2540 | } | 2532 | } |