Skip to content

Commit

Permalink
[Debugging] Use SWIFT_NATIVE_SWIFT_TOOLS_PATH if defined (#71814)
Browse files Browse the repository at this point in the history
  • Loading branch information
kastiglione authored Feb 23, 2024
1 parent f24bb03 commit 557628c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion stdlib/public/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,16 @@ list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "Freestand
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "Extern")
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "BitwiseCopyable")

if("${SWIFT_NATIVE_SWIFT_TOOLS_PATH}" STREQUAL "")
set(swift_bin_dir "${CMAKE_BINARY_DIR}/bin")
set(swift_lib_dir "${CMAKE_BINARY_DIR}/lib")
else()
set(swift_bin_dir "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}")
set(swift_lib_dir "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/../lib")
endif()

list(APPEND swift_stdlib_compile_flags "-external-plugin-path"
"${CMAKE_BINARY_DIR}/lib/swift/host/plugins#${CMAKE_BINARY_DIR}/bin/swift-plugin-server")
"${swift_lib_dir}/swift/host/plugins#${swift_bin_dir}/swift-plugin-server")
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "SymbolLinkageMarkers")

set(swift_core_incorporate_object_libraries)
Expand Down

0 comments on commit 557628c

Please sign in to comment.