Skip to content

Commit 4dbd095

Browse files
[lldb][tests] Fix build with LLVM_ENABLE_SWIFT_SUPPORT=OFF
Fix the unittest build when swift support is off.
1 parent 6e59c4a commit 4dbd095

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lldb/unittests/Core/CMakeLists.txt

Lines changed: 10 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
@@ -14,9 +22,10 @@ add_lldb_unittest(LLDBCoreTests
1422
SourceLocationSpecTest.cpp
1523
SourceManagerTest.cpp
1624
TelemetryTest.cpp
17-
SwiftDemanglingPartsTest.cpp
1825
UniqueCStringMapTest.cpp
1926

27+
${SWIFT_SOURCES}
28+
2029
LINK_COMPONENTS
2130
Support
2231
Telemetry

0 commit comments

Comments
 (0)