llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[next 🍒] Parameterize Initialization of 'clang::CodeGenerator' on a TargetInfo instance which may differ from the one in the ASTContext

Open artemcm opened this issue 1 year ago • 2 comments

As per https://github.com/apple/swift/pull/65930, Swift compiler's built-in Clang instance may require to perform type-checking against one OS version and compilation/code-generation against an earlier version. This change allows Swift to configure it's built-in Clang code-generator with a custom 'TargetInfo'.

Part of rdar://113712186

artemcm avatar Oct 24 '24 18:10 artemcm

@swift-ci test

artemcm avatar Oct 24 '24 18:10 artemcm

Swift build will fail, you can run llvm tests to ensure it (llvm) builds, but otherwise I'd just merge (@swift-ci please test llvm)

bnbarham avatar Oct 24 '24 18:10 bnbarham