File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -315,8 +315,16 @@ list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "Freestand
315
315
list (APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "Extern" )
316
316
list (APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "BitwiseCopyable" )
317
317
318
+ if ("${SWIFT_NATIVE_SWIFT_TOOLS_PATH} " STREQUAL "" )
319
+ set (swift_bin_dir "${CMAKE_BINARY_DIR} /bin" )
320
+ set (swift_lib_dir "${CMAKE_BINARY_DIR} /lib" )
321
+ else ()
322
+ set (swift_bin_dir "${SWIFT_NATIVE_SWIFT_TOOLS_PATH} " )
323
+ set (swift_lib_dir "${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /../lib" )
324
+ endif ()
325
+
318
326
list (APPEND swift_stdlib_compile_flags "-external-plugin-path"
319
- "${CMAKE_BINARY_DIR} /lib/ swift/host/plugins#${CMAKE_BINARY_DIR} /bin /swift-plugin-server" )
327
+ "${swift_lib_dir} / swift/host/plugins#${swift_bin_dir} /swift-plugin-server" )
320
328
list (APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "SymbolLinkageMarkers" )
321
329
322
330
set (swift_core_incorporate_object_libraries )
You can’t perform that action at this time.
0 commit comments