Skip to content

Commit 78aec29

Browse files
committed
One step towards supporting bootstrapping with Xcode
A `/${CMAKE_CFG_INTDIR}` was missing in a path. With Ninja, this does not matter because then it is always "". But with Xcode, it is "Debug", "Release", etc..
1 parent b4faed4 commit 78aec29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/driver/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if(${BOOTSTRAPPING_MODE} MATCHES "BOOTSTRAPPING.*")
1919
swift_create_post_build_symlink(swift-frontend-bootstrapping0
2020
SOURCE "swift-frontend${CMAKE_EXECUTABLE_SUFFIX}"
2121
DESTINATION "swiftc${CMAKE_EXECUTABLE_SUFFIX}"
22-
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/bootstrapping0/bin")
22+
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/bootstrapping0/${CMAKE_CFG_INTDIR}/bin")
2323

2424
# Bootstrapping - level 1
2525

@@ -37,7 +37,7 @@ if(${BOOTSTRAPPING_MODE} MATCHES "BOOTSTRAPPING.*")
3737
swift_create_post_build_symlink(swift-frontend-bootstrapping1
3838
SOURCE "swift-frontend${CMAKE_EXECUTABLE_SUFFIX}"
3939
DESTINATION "swiftc${CMAKE_EXECUTABLE_SUFFIX}"
40-
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/bootstrapping1/bin")
40+
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/bootstrapping1/${CMAKE_CFG_INTDIR}/bin")
4141
endif()
4242

4343
add_swift_host_tool(swift-frontend

0 commit comments

Comments
 (0)