Skip to content

Commit f44c098

Browse files
mununkicristianoc
authored andcommitted
fix build due to syntax module structure change
1 parent c22e833 commit f44c098

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/ninja.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1463,9 +1463,15 @@ function preprocessorNinjaSync() {
14631463
var napkinFiles = fs
14641464
.readdirSync(path.join(jscompDir, "..", "syntax", "src"), "ascii")
14651465
.filter((x) => x.endsWith(".ml") || x.endsWith(".mli"));
1466-
var buildNapkinFiles = napkinFiles
1466+
var napkinCliFiles = fs
1467+
.readdirSync(path.join(jscompDir, "..", "syntax", "cli"), "ascii")
1468+
.filter((x) => x.endsWith(".ml") || x.endsWith(".mli"));
1469+
var buildNapkinFiles = napkinFiles
14671470
.map((file) => `o napkin/${file} : copy ../syntax/src/${file}`)
14681471
.join("\n");
1472+
var buildNapkinCliFiles = napkinCliFiles
1473+
.map((file) => `o napkin/${file} : copy ../syntax/cli/${file}`)
1474+
.join("\n");
14691475
var cppoNative = `
14701476
ocamlopt = ocamlopt.opt
14711477
ocamllex = ocamllex.opt
@@ -1569,6 +1575,7 @@ rule copy
15691575
command = cp $in $out
15701576
description = $in -> $out
15711577
${buildNapkinFiles}
1578+
${buildNapkinCliFiles}
15721579
`;
15731580
var cppoNinjaFile = "cppoVendor.ninja";
15741581
writeFileSync(path.join(jscompDir, cppoNinjaFile), cppoNative);

0 commit comments

Comments
 (0)