mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
MinGW: remove dependency on a C preprocessor for MinGW .def.in files (#35679)
closes #31955 Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35679 Reviewed-by: Ryan Liptak <squeek502@noreply.codeberg.org>
This commit is contained in:
1 parent
4f72106c85
commit
0b22111bc9
6 files changed
+1510
-47
No files matched your search
@@ -649,6 +649,26 @@ pub fn build(b: *std.Build) !void {
|
||||
update_mingw_step.dependOn(&b.addFail("The -Dmingw-src=... option is required for this step").step);
|
||||
}
|
||||
|
||||
const check_mingw_step = b.step("check-mingw", "Checks for mingw preprocessor regressions");
|
||||
const mingw_preprocessor_mod = b.createModule(.{
|
||||
.root_source_file = b.path("src/libs/mingw/Preprocessor.zig"),
|
||||
.target = target,
|
||||
});
|
||||
|
||||
const check_mingw_exe = b.addExecutable(.{
|
||||
.name = "check_mingw",
|
||||
.root_module = b.createModule(.{
|
||||
.target = b.graph.host,
|
||||
.root_source_file = b.path("tools/check_mingw.zig"),
|
||||
.imports = &.{
|
||||
.{ .name = "preprocessor", .module = mingw_preprocessor_mod },
|
||||
},
|
||||
}),
|
||||
});
|
||||
const check_mingw_run = b.addRunArtifact(check_mingw_exe);
|
||||
check_mingw_run.addDirectoryArg(b.path("lib/libc/mingw"));
|
||||
check_mingw_step.dependOn(&check_mingw_run.step);
|
||||
|
||||
const test_incremental_step = b.step("test-incremental", "Run the incremental compilation test cases");
|
||||
try tests.addIncrementalTests(b, test_incremental_step, test_filters);
|
||||
if (!skip_test_incremental) test_step.dependOn(test_incremental_step);
|
||||
|
||||
Reference in new issue
Block a user