MaskRay added a comment. I think the file is linked into `libclang.so`.
The resource directory is relative to`libclang.so` but may not be relative to the main executable... So getMainExecutable will be incorrect. ================ Comment at: clang/tools/libclang/CIndexer.cpp:142 + // error instead of crashing. + llvm::report_fatal_error("Could not locate Clang resource path"); + } ---------------- Diagnostics generally are not capitalized: https://llvm.org/docs/CodingStandards.html#error-and-warning-messages You can ignore the numerous anti-examples (I know, lots of inconsistency)... Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124815/new/ https://reviews.llvm.org/D124815 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits