Skip javascriptcore's first parse step for ES Modules (#15758)

This commit is contained in:
pfg
2025-01-09 19:31:44 -08:00
committed by GitHub
parent 0b9db36494
commit ccc7bde7c6
21 changed files with 1516 additions and 190 deletions

View File

@@ -470,6 +470,11 @@ pub fn addInstallObjectFile(
name: []const u8,
out_mode: ObjectFormat,
) *Step {
if (@import("builtin").os.tag != .windows and std.posix.getenvZ("COMPILE_ERRORS_ONLY") != null) {
const failstep = b.addSystemCommand(&.{"COMPILE_ERRORS_ONLY set but there were no compile errors"});
failstep.step.dependOn(&compile.step);
return &failstep.step;
}
// bin always needed to be computed or else the compilation will do nothing. zig build system bug?
const bin = compile.getEmittedBin();
return &b.addInstallFile(switch (out_mode) {