| ... | ... | @@ -380,29 +380,30 @@ pub fn build(b: *Builder) !void { |
| 380 | 380 | |
| 381 | 381 | const test_filter = b.option([]const u8, "test-filter", "Skip tests that do not match filter"); |
| 382 | 382 | |
| 383 | | const test_stage2_options = b.addOptions(); |
| 384 | | test_cases.addOptions("build_options", test_stage2_options); |
| 385 | | |
| 386 | | test_stage2_options.addOption(bool, "enable_logging", enable_logging); |
| 387 | | test_stage2_options.addOption(bool, "enable_link_snapshots", enable_link_snapshots); |
| 388 | | test_stage2_options.addOption(bool, "skip_non_native", skip_non_native); |
| 389 | | test_stage2_options.addOption(bool, "skip_stage1", skip_stage1); |
| 390 | | test_stage2_options.addOption(bool, "is_stage1", is_stage1); |
| 391 | | test_stage2_options.addOption(bool, "omit_stage2", omit_stage2); |
| 392 | | test_stage2_options.addOption(bool, "have_llvm", enable_llvm); |
| 393 | | test_stage2_options.addOption(bool, "llvm_has_m68k", llvm_has_m68k); |
| 394 | | test_stage2_options.addOption(bool, "llvm_has_csky", llvm_has_csky); |
| 395 | | test_stage2_options.addOption(bool, "llvm_has_ve", llvm_has_ve); |
| 396 | | test_stage2_options.addOption(bool, "llvm_has_arc", llvm_has_arc); |
| 397 | | test_stage2_options.addOption(bool, "enable_qemu", b.enable_qemu); |
| 398 | | test_stage2_options.addOption(bool, "enable_wine", b.enable_wine); |
| 399 | | test_stage2_options.addOption(bool, "enable_wasmtime", b.enable_wasmtime); |
| 400 | | test_stage2_options.addOption(bool, "enable_rosetta", b.enable_rosetta); |
| 401 | | test_stage2_options.addOption(bool, "enable_darling", b.enable_darling); |
| 402 | | test_stage2_options.addOption(u32, "mem_leak_frames", mem_leak_frames * 2); |
| 403 | | test_stage2_options.addOption(?[]const u8, "glibc_runtimes_dir", b.glibc_runtimes_dir); |
| 404 | | test_stage2_options.addOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); |
| 405 | | test_stage2_options.addOption(std.SemanticVersion, "semver", semver); |
| 383 | const test_cases_options = b.addOptions(); |
| 384 | test_cases.addOptions("build_options", test_cases_options); |
| 385 | |
| 386 | test_cases_options.addOption(bool, "enable_logging", enable_logging); |
| 387 | test_cases_options.addOption(bool, "enable_link_snapshots", enable_link_snapshots); |
| 388 | test_cases_options.addOption(bool, "skip_non_native", skip_non_native); |
| 389 | test_cases_options.addOption(bool, "skip_stage1", skip_stage1); |
| 390 | test_cases_options.addOption(bool, "is_stage1", is_stage1); |
| 391 | test_cases_options.addOption(bool, "omit_stage2", omit_stage2); |
| 392 | test_cases_options.addOption(bool, "have_llvm", enable_llvm); |
| 393 | test_cases_options.addOption(bool, "llvm_has_m68k", llvm_has_m68k); |
| 394 | test_cases_options.addOption(bool, "llvm_has_csky", llvm_has_csky); |
| 395 | test_cases_options.addOption(bool, "llvm_has_ve", llvm_has_ve); |
| 396 | test_cases_options.addOption(bool, "llvm_has_arc", llvm_has_arc); |
| 397 | test_cases_options.addOption(bool, "enable_qemu", b.enable_qemu); |
| 398 | test_cases_options.addOption(bool, "enable_wine", b.enable_wine); |
| 399 | test_cases_options.addOption(bool, "enable_wasmtime", b.enable_wasmtime); |
| 400 | test_cases_options.addOption(bool, "enable_rosetta", b.enable_rosetta); |
| 401 | test_cases_options.addOption(bool, "enable_darling", b.enable_darling); |
| 402 | test_cases_options.addOption(u32, "mem_leak_frames", mem_leak_frames * 2); |
| 403 | test_cases_options.addOption(?[]const u8, "glibc_runtimes_dir", b.glibc_runtimes_dir); |
| 404 | test_cases_options.addOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); |
| 405 | test_cases_options.addOption(std.SemanticVersion, "semver", semver); |
| 406 | test_cases_options.addOption(?[]const u8, "test_filter", test_filter); |
| 406 | 407 | |
| 407 | 408 | const test_cases_step = b.step("test-cases", "Run the main compiler test cases"); |
| 408 | 409 | test_cases_step.dependOn(&test_cases.step); |