File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ pub fn build(b: *std.Build) !void {
3535 });
3636 try emcc_flags .put ("-mtail-call" , {});
3737 try emcc_flags .put ("-pthread" , {});
38- try emcc_flags .put ("--js-library=node_modules/xterm-pty/emscripten-pty.js" , {});
3938
4039 var emcc_settings : zemscripten.EmccSettings = .init (b .allocator );
4140 try emcc_settings .put ("PROXY_TO_PTHREAD" , "1" );
@@ -49,6 +48,12 @@ pub fn build(b: *std.Build) !void {
4948 .install_dir = .prefix ,
5049 });
5150
51+ var emcc : * std.Build.Step.Run = @fieldParentPtr ("step" , emcc_step .dependencies .getLast ());
52+ const js_library_path = b .path ("node_modules/xterm-pty/emscripten-pty.js" );
53+ emcc .addArg ("--js-library" );
54+ emcc .addFileArg (js_library_path );
55+ emcc .addFileInput (js_library_path );
56+
5257 inline for (.{
5358 "demo/index.html" ,
5459 "node_modules/coi-serviceworker/coi-serviceworker.min.js" ,
You can’t perform that action at this time.
0 commit comments