[cxx-interop][SwiftCompilerSources] Add LLVM headers to the include paths

This allows the Swift compiler to find headers like `llvm/Support/Compiler.h` that are used by Swift headers.
This commit is contained in:
Egor Zhdan
2022-05-05 23:54:38 +01:00
parent 038a4f0b80
commit 5768aebeee
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ private extension Target {
"-Xfrontend", "-enable-cxx-interop",
// Bridging modules and headers
"-Xcc", "-I", "-Xcc", "../include",
// LLVM modules and headers
"-Xcc", "-I", "-Xcc", "../../llvm-project/llvm/include",
"-cross-module-optimization"
]),
]