Skip to content

[lldb][tests] Fix build with LLVM_ENABLE_SWIFT_SUPPORT=OFF #11141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion lldb/unittests/Core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
set(SWIFT_SOURCES
SwiftDemanglingPartsTest.cpp
)

set(LLVM_OPTIONAL_SOURCES ${SWIFT_SOURCES})
if (NOT LLDB_ENABLE_SWIFT_SUPPORT)
unset(SWIFT_SOURCES)
endif()

add_lldb_unittest(LLDBCoreTests
DebuggerTest.cpp
Expand All @@ -14,9 +22,10 @@ add_lldb_unittest(LLDBCoreTests
SourceLocationSpecTest.cpp
SourceManagerTest.cpp
TelemetryTest.cpp
SwiftDemanglingPartsTest.cpp
UniqueCStringMapTest.cpp

${SWIFT_SOURCES}

LINK_COMPONENTS
Support
Telemetry
Expand Down