Skip to content

Commit 3bf54c3

Browse files
authored
Merge pull request #20881 from compnerd/the-world-is-flat
build: assume a parallel tree layout for unified builds
2 parents da3fe20 + 16a4af0 commit 3bf54c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ macro(swift_common_unified_build_config product)
226226
set(PATH_TO_LLVM_BUILD "${CMAKE_BINARY_DIR}")
227227
set(${product}_PATH_TO_CLANG_BUILD "${CMAKE_BINARY_DIR}")
228228
set(PATH_TO_CLANG_BUILD "${CMAKE_BINARY_DIR}")
229-
set(CLANG_MAIN_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/tools/clang/include")
229+
set(CLANG_MAIN_INCLUDE_DIR "${LLVM_EXTERNAL_CLANG_SOURCE_DIR}/include")
230230
set(CLANG_BUILD_INCLUDE_DIR "${CMAKE_BINARY_DIR}/tools/clang/include")
231231
set(${product}_NATIVE_LLVM_TOOLS_PATH "${CMAKE_BINARY_DIR}/bin")
232232
set(${product}_NATIVE_CLANG_TOOLS_PATH "${CMAKE_BINARY_DIR}/bin")
@@ -235,8 +235,8 @@ macro(swift_common_unified_build_config product)
235235

236236
# If cmark was checked out into tools/cmark, expect to build it as
237237
# part of the unified build.
238-
if(EXISTS "${CMAKE_SOURCE_DIR}/tools/cmark/")
239-
set(${product}_PATH_TO_CMARK_SOURCE "${CMAKE_SOURCE_DIR}/tools/cmark")
238+
if(EXISTS "${LLVM_EXTERNAL_CMARK_SOURCE_DIR}")
239+
set(${product}_PATH_TO_CMARK_SOURCE "${LLVM_EXTERNAL_CMARK_SOURCE_DIR}")
240240
set(${product}_PATH_TO_CMARK_BUILD "${CMAKE_BINARY_DIR}/tools/cmark")
241241
set(${product}_CMARK_LIBRARY_DIR "${CMAKE_BINARY_DIR}/lib")
242242

0 commit comments

Comments
 (0)