Skip to content

[cherry-pick] Normalize path for LLVM_EXTERNAL_SWIFT_SOURCE_DIR #10953

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

Open
wants to merge 1 commit into
base: swift/release/6.2
Choose a base branch
from
Open
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
5 changes: 3 additions & 2 deletions lldb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ include(AddLLDB)
# BEGIN - Swift Mods
if (LLDB_ENABLE_SWIFT_SUPPORT)
if(EXISTS "${LLVM_EXTERNAL_SWIFT_SOURCE_DIR}")
cmake_path(CONVERT "${LLVM_EXTERNAL_SWIFT_SOURCE_DIR}" TO_CMAKE_PATH_LIST NORMALIZED_LLVM_EXTERNAL_SWIFT_SOURCE_DIR NORMALIZE)
list(APPEND CMAKE_MODULE_PATH
"${LLVM_EXTERNAL_SWIFT_SOURCE_DIR}/cmake"
"${LLVM_EXTERNAL_SWIFT_SOURCE_DIR}/cmake/modules")
"${NORMALIZED_LLVM_EXTERNAL_SWIFT_SOURCE_DIR}/cmake"
"${NORMALIZED_LLVM_EXTERNAL_SWIFT_SOURCE_DIR}/cmake/modules")
elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../swift)
list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/../swift/cmake"
Expand Down