Skip to content

Commit c5d5c66

Browse files
committed
fix a build bug when no cmi provided
1 parent 87fb157 commit c5d5c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ninja.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ function updateDepsKVsByModule(target, modules, depsMap) {
329329
let filenameAsCmi = filename + ".cmi";
330330
let filenameAsCmj = filename + ".cmj";
331331
if (target.endsWith(".cmi")) {
332-
if (depsMap.has(filenameAsCmi)) {
332+
if (depsMap.has(filenameAsCmi) || depsMap.has(filenameAsCmj)) {
333333
s.add(fileTarget(filenameAsCmi));
334334
}
335335
} else if (target.endsWith(".cmj")) {

0 commit comments

Comments
 (0)