mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Skip javascriptcore's first parse step for ES Modules (#15758)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user