Skip to content

Commit bcb5387

Browse files
cachemeifyoucanJDevlieghere
authored andcommitted
[lldb][tests] Fix build with LLVM_ENABLE_SWIFT_SUPPORT=OFF
Fix the unittest build when swift support is off. (cherry picked from commit d3d0ac9)
1 parent 26c9331 commit bcb5387

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lldb/unittests/Core/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
set(SWIFT_SOURCES
2+
SwiftDemanglingPartsTest.cpp
3+
)
4+
5+
set(LLVM_OPTIONAL_SOURCES ${SWIFT_SOURCES})
6+
if (NOT LLDB_ENABLE_SWIFT_SUPPORT)
7+
unset(SWIFT_SOURCES)
8+
endif()
19

210
add_lldb_unittest(LLDBCoreTests
311
DebuggerTest.cpp
@@ -13,10 +21,12 @@ add_lldb_unittest(LLDBCoreTests
1321
RichManglingContextTest.cpp
1422
SourceLocationSpecTest.cpp
1523
SourceManagerTest.cpp
16-
SwiftDemanglingPartsTest.cpp
24+
TelemetryTest.cpp
1725
TelemetryTest.cpp
1826
UniqueCStringMapTest.cpp
1927

28+
${SWIFT_SOURCES}
29+
2030
LINK_COMPONENTS
2131
Support
2232
Telemetry

0 commit comments

Comments
 (0)