mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ClangImporter] Swift needs to pass -Xclang -fbuiltin-headers-in-system-modules for its module maps that group cstd headers
Swift has some module maps it overlays on Linux and Windows that groups all of the C standard library headers into a single module. This doesn’t allow clang and C++ headers to layer properly with the OS/SDK modules. clang will set -fbuiltin-headers-in-system-modules as necessary for Apple SDKs, but Swift will need to pass that flag itself when required by its module maps.
This commit is contained in:
@@ -23,6 +23,11 @@ import Swift
|
||||
|
||||
@_implementationOnly import OS.Libc
|
||||
@_implementationOnly import Runtime
|
||||
// Because we've turned off the OS/SDK modules, and we don't have a module for
|
||||
// stddef.h, and we sometimes build with -fbuiltin-headers-in-system-modules for
|
||||
// vfs reasons, stddef.h can be absorbed into a random module. Sometimes it's
|
||||
// SwiftOverlayShims.
|
||||
@_implementationOnly import SwiftOverlayShims
|
||||
|
||||
/// A symbolicated backtrace
|
||||
public struct SymbolicatedBacktrace: CustomStringConvertible {
|
||||
|
||||
Reference in New Issue
Block a user