[cxx-interop][SwiftCompilerSources] Include Clang headers

This will allow using Swift headers that include Clang headers from SwiftCompilerSources.

For example, some headers in `swift/Basic` include headers from `clang/Basic`. Currently adding those Swift headers to the modulemap causes a build error.
This commit is contained in:
Egor Zhdan
2022-09-06 14:34:53 +01:00
parent 486dc27e1d
commit e515db9c48
2 changed files with 18 additions and 8 deletions

View File

@@ -22,6 +22,8 @@ private extension Target {
"-Xcc", "-I", "-Xcc", "../include",
// LLVM modules and headers
"-Xcc", "-I", "-Xcc", "../../llvm-project/llvm/include",
// Clang modules and headers
"-Xcc", "-I", "-Xcc", "../../llvm-project/clang/include",
"-cross-module-optimization"
]),
]