File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -191,11 +191,17 @@ endfunction()
191
191
# to ensure that `swiftc` forwards to the standalone driver when invoked.
192
192
function (swift_create_early_driver_copies target )
193
193
# Early swift-driver is built adjacent to the compiler (swift build dir)
194
- set (driver_bin_dir "${CMAKE_BINARY_DIR} /../earlyswiftdriver-${SWIFT_HOST_VARIANT} -${SWIFT_HOST_VARIANT_ARCH} /release/bin" )
194
+ if (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo" )
195
+ set (driver_package_configuration_dir "release" )
196
+ else ()
197
+ set (driver_package_configuration_dir "debug" )
198
+ endif ()
199
+
200
+ set (driver_bin_dir "${CMAKE_BINARY_DIR} /../earlyswiftdriver-${SWIFT_HOST_VARIANT} -${SWIFT_HOST_VARIANT_ARCH} /${driver_package_configuration_dir} /bin" )
195
201
set (swift_bin_dir "${SWIFT_RUNTIME_OUTPUT_INTDIR} " )
196
202
# If early swift-driver wasn't built, nothing to do here.
197
203
if (NOT EXISTS "${driver_bin_dir} /swift-driver" OR NOT EXISTS "${driver_bin_dir} /swift-help" )
198
- message (STATUS "Skipping creating early SwiftDriver symlinks - no early SwiftDriver build found." )
204
+ message (STATUS "Skipping creating early SwiftDriver symlinks - no early SwiftDriver build found at: ${driver_bin_dir} ." )
199
205
return ()
200
206
endif ()
201
207
You can’t perform that action at this time.
0 commit comments