@@ -90,8 +90,6 @@ pub fn build(b: *std.Build) !void {
90
90
const skip_libc = b .option (bool , "skip-libc" , "Main test suite skips tests that link libc" ) orelse false ;
91
91
const skip_single_threaded = b .option (bool , "skip-single-threaded" , "Main test suite skips tests that are single-threaded" ) orelse false ;
92
92
const skip_compile_errors = b .option (bool , "skip-compile-errors" , "Main test suite skips compile error tests" ) orelse false ;
93
- const skip_translate_c = b .option (bool , "skip-translate-c" , "Main test suite skips translate-c tests" ) orelse false ;
94
- const skip_run_translated_c = b .option (bool , "skip-run-translated-c" , "Main test suite skips run-translated-c tests" ) orelse skip_translate_c ;
95
93
const skip_freebsd = b .option (bool , "skip-freebsd" , "Main test suite skips targets with freebsd OS" ) orelse false ;
96
94
const skip_netbsd = b .option (bool , "skip-netbsd" , "Main test suite skips targets with netbsd OS" ) orelse false ;
97
95
const skip_windows = b .option (bool , "skip-windows" , "Main test suite skips targets with windows OS" ) orelse false ;
@@ -416,7 +414,7 @@ pub fn build(b: *std.Build) !void {
416
414
test_step .dependOn (check_fmt );
417
415
418
416
const test_cases_step = b .step ("test-cases" , "Run the main compiler test cases" );
419
- try tests .addCases (b , test_cases_step , target , .{
417
+ try tests .addCases (b , test_cases_step , .{
420
418
.test_filters = test_filters ,
421
419
.test_target_filters = test_target_filters ,
422
420
.skip_compile_errors = skip_compile_errors ,
@@ -428,9 +426,6 @@ pub fn build(b: *std.Build) !void {
428
426
.skip_linux = skip_linux ,
429
427
.skip_llvm = skip_llvm ,
430
428
.skip_libc = skip_libc ,
431
- }, .{
432
- .skip_translate_c = skip_translate_c ,
433
- .skip_run_translated_c = skip_run_translated_c ,
434
429
}, .{
435
430
.enable_llvm = enable_llvm ,
436
431
.llvm_has_m68k = llvm_has_m68k ,
@@ -465,28 +460,6 @@ pub fn build(b: *std.Build) !void {
465
460
.max_rss = 4000000000 ,
466
461
}));
467
462
468
- if (! skip_translate_c ) {
469
- test_modules_step .dependOn (tests .addModuleTests (b , .{
470
- .test_filters = test_filters ,
471
- .test_target_filters = test_target_filters ,
472
- .test_extra_targets = test_extra_targets ,
473
- .root_src = "test/c_import.zig" ,
474
- .name = "c-import" ,
475
- .desc = "Run the @cImport tests" ,
476
- .optimize_modes = optimization_modes ,
477
- .include_paths = &.{"test/c_import" },
478
- .skip_single_threaded = true ,
479
- .skip_non_native = skip_non_native ,
480
- .skip_freebsd = skip_freebsd ,
481
- .skip_netbsd = skip_netbsd ,
482
- .skip_windows = skip_windows ,
483
- .skip_macos = skip_macos ,
484
- .skip_linux = skip_linux ,
485
- .skip_llvm = skip_llvm ,
486
- .skip_libc = skip_libc ,
487
- }));
488
- }
489
-
490
463
test_modules_step .dependOn (tests .addModuleTests (b , .{
491
464
.test_filters = test_filters ,
492
465
.test_target_filters = test_target_filters ,
@@ -577,7 +550,6 @@ pub fn build(b: *std.Build) !void {
577
550
enable_macos_sdk ,
578
551
enable_ios_sdk ,
579
552
enable_symlinks_windows ,
580
- skip_translate_c ,
581
553
));
582
554
test_step .dependOn (tests .addCAbiTests (b , .{
583
555
.test_target_filters = test_target_filters ,
@@ -732,13 +704,7 @@ fn addCompilerMod(b: *std.Build, options: AddCompilerModOptions) *std.Build.Modu
732
704
.root_source_file = b .path ("lib/compiler/aro/aro.zig" ),
733
705
});
734
706
735
- const aro_translate_c_mod = b .createModule (.{
736
- .root_source_file = b .path ("lib/compiler/aro_translate_c.zig" ),
737
- });
738
-
739
- aro_translate_c_mod .addImport ("aro" , aro_mod );
740
707
compiler_mod .addImport ("aro" , aro_mod );
741
- compiler_mod .addImport ("aro_translate_c" , aro_translate_c_mod );
742
708
743
709
return compiler_mod ;
744
710
}
@@ -1158,7 +1124,6 @@ fn toNativePathSep(b: *std.Build, s: []const u8) []u8 {
1158
1124
const zig_cpp_sources = [_ ][]const u8 {
1159
1125
// These are planned to stay even when we are self-hosted.
1160
1126
"src/zig_llvm.cpp" ,
1161
- "src/zig_clang.cpp" ,
1162
1127
"src/zig_llvm-ar.cpp" ,
1163
1128
"src/zig_clang_driver.cpp" ,
1164
1129
"src/zig_clang_cc1_main.cpp" ,
0 commit comments