mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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"
|
||||
]),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user