Skip to content

Commit d884282

Browse files
committed
fix C name of generated code
1 parent fcb63a7 commit d884282

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,16 @@ pub fn build(b: *std.Build) void {
119119
_ = b.addModule("quickjs-ng", .{ .root_source_file = header.getOutput() });
120120

121121
const gen_repl = b.addRunArtifact(qjsc_host);
122+
gen_repl.addArg("-N");
123+
gen_repl.addArg("qjsc_repl");
122124
gen_repl.addArg("-o");
123125
const gen_repl_out = gen_repl.addOutputFileArg("repl.c");
124126
gen_repl.addArg("-m");
125127
gen_repl.addFileArg(csrc.path("repl.js"));
126128

127129
const gen_standalone = b.addRunArtifact(qjsc_host);
130+
gen_standalone.addArg("-N");
131+
gen_standalone.addArg("qjsc_standalone");
128132
gen_standalone.addArg("-o");
129133
const gen_standalone_out = gen_standalone.addOutputFileArg("standalone.c");
130134
gen_standalone.addArg("-m");

0 commit comments

Comments
 (0)