[all-commits] [llvm/llvm-project] 924a7d: Use CLANG_RESOURCE_DIR more consistently (#103388)
Kim Gräsman via All-commits
all-commits at lists.llvm.org
Mon Aug 26 10:50:17 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 924a7d83b4287b3b85dd1ca29d2d3e1f0a10ea68
https://github.com/llvm/llvm-project/commit/924a7d83b4287b3b85dd1ca29d2d3e1f0a10ea68
Author: Kim Gräsman <kim.grasman at gmail.com>
Date: 2024-08-26 (Mon, 26 Aug 2024)
Changed paths:
M clang/include/clang/Driver/Driver.h
M clang/lib/Driver/Driver.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp
M lldb/unittests/Expression/ClangParserTest.cpp
Log Message:
-----------
Use CLANG_RESOURCE_DIR more consistently (#103388)
When Clang is consumed as a library, the CLANG_RESOURCE_DIR definition
is not exported from the CMake system, so external clients will be
unable to compute the same resource dir as Clang itself would, because
they don't know what to pass for the optional CustomResourceDir
argument.
All call sites except one would pass CLANG_RESOURCE_DIR to
Driver::GetResourcesPath. It seems the one exception in libclang
CIndexer was an oversight.
Move the use of CLANG_RESOURCE_DIR into GetResourcesPath and remove the
optional argument to avoid this inconsistency between internal and
external clients.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list