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