Skip to content

Commit b648f2a

Browse files
committed
Merge #47: gen.cpp: Check local includes before install includes
1007bd7 gen.cpp: Check local includes before install includes (Russell Yanofsky) Pull request description: Fix `make check` if previous incompatible version of libmultiprocess is installed and `make install` hasn't been run yet to update it. Carl Dong reported this issue in #44 and confirmed the fix in #44 (comment) Top commit has no ACKs. Tree-SHA512: 11e8089ea83b37a5a45fb34af25e8f419a0660f77736b506870dd41d449c169962c046568b0f5e019567d6cb66effbab2d367d59a1490c41366dd571cc9c1796
2 parents c2f866f + 1007bd7 commit b648f2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mp/gen.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,16 +598,16 @@ int main(int argc, char** argv)
598598
auto fs = kj::newDiskFilesystem();
599599
auto cwd = fs->getCurrentPath();
600600
#endif
601+
for (size_t i = 4; i < argc; ++i) {
602+
import_paths.push_back(argv[i]);
603+
}
601604
for (const char* path : {CMAKE_INSTALL_PREFIX "/include", capnp_PREFIX "/include"}) {
602605
#ifdef HAVE_KJ_FILESYSTEM
603606
KJ_IF_MAYBE(dir, fs->getRoot().tryOpenSubdir(cwd.evalNative(path))) { import_paths.emplace_back(path); }
604607
#else
605608
import_paths.emplace_back(path);
606609
#endif
607610
}
608-
for (size_t i = 4; i < argc; ++i) {
609-
import_paths.push_back(argv[i]);
610-
}
611611
Generate(argv[1], argv[2], argv[3], {import_paths.data(), import_paths.size()});
612612
return 0;
613613
}

0 commit comments

Comments
 (0)