File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,10 @@ function(add_swift_compiler_modules_library name)
127
127
${SWIFT_HOST_VARIANT_ARCH} "${deployment_version} " )
128
128
129
129
# Let Swift discover SwiftShims headers which are included by some headers
130
- # under `include/swift`.
130
+ # under `include/swift`. These are either located next to the compiler (in case of open source toolchains) or
131
+ # in the SDK (in case a Swift compiler from Xcode)
131
132
get_filename_component (swift_exec_bin_dir ${ALS_SWIFT_EXEC} DIRECTORY )
132
- set (sdk_option ${sdk_option} "-I" "${swift_exec_bin_dir} /../lib" )
133
+ set (sdk_option ${sdk_option} "-I" "${swift_exec_bin_dir} /../lib" "-I" " ${sdk_path} /usr/lib" )
133
134
134
135
set (all_obj_files )
135
136
set (all_module_targets )
Original file line number Diff line number Diff line change @@ -274,6 +274,10 @@ macro(swift_common_unified_build_config product)
274
274
set (${product} _NATIVE_CLANG_TOOLS_PATH "${CMAKE_BINARY_DIR} /bin" )
275
275
set (LLVM_PACKAGE_VERSION ${PACKAGE_VERSION} )
276
276
set (LLVM_CMAKE_DIR "${CMAKE_SOURCE_DIR} /cmake/modules" )
277
+ set (CLANG_INCLUDE_DIRS
278
+ "${CLANG_MAIN_INCLUDE_DIR} "
279
+ "${CLANG_BUILD_INCLUDE_DIR} "
280
+ )
277
281
278
282
# If cmark was checked out into tools/cmark, expect to build it as
279
283
# part of the unified build.
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ endif()
179
179
# where intrinsics and attributes are declared. swiftAST depends on these
180
180
# headers.
181
181
# For more information see the comment at the top of lib/CMakeLists.txt.
182
- add_dependencies (swiftAST intrinsics_gen clang-tablegen-targets )
182
+ add_dependencies (swift-ast-generated-headers intrinsics_gen clang-tablegen-targets )
183
183
add_dependencies (swiftAST swift-ast-generated-headers )
184
184
185
185
set_swift_llvm_is_available (swiftAST )
You can’t perform that action at this time.
0 commit comments