Skip to content

Commit 0919190

Browse files
committed
Fix shared libraries build
1 parent c0961a4 commit 0919190

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

clang-tools-extra/clangd/unittests/FeatureModulesRegistryTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace clang::clangd {
5050
namespace {
5151

5252
MATCHER_P(moduleName, Name, "") { return arg.getName() == Name; }
53-
MATCHER_P(tweakID, ID, "") { return arg->id() == ID; }
53+
MATCHER_P(tweakID, ID, "") { return arg->id() == llvm::StringRef(ID); }
5454

5555
TEST(FeatureModulesRegistryTest, DummyModule) {
5656
EXPECT_THAT(FeatureModuleRegistry::entries(),
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
add_llvm_library(dummyFeatureModule DummyFeatureModule.cpp)
1+
add_llvm_library(dummyFeatureModule
2+
DummyFeatureModule.cpp
3+
LINK_LIBS
4+
clangDaemon
5+
clangdSupport
6+
)
27
set(FEATURE_MODULES ${FEATURE_MODULES} dummyFeatureModule PARENT_SCOPE)

0 commit comments

Comments
 (0)