Commit Graph

1 Commits

Author SHA1 Message Date
Steven Wu
eacb045393 [ExplicitModule] Fix codegen target when using direct cc1 mode
When using direct-cc1 scanning mode, `-clang-target` is passed to
swift-frontend as `-Xcc` option, thus it causes swift IRGen to use
clang-target, instead of `-target` option of swift invocation. Teach
clang importer to restore target triple from swift for codegen option.

rdar://130547690
2024-06-26 14:46:35 -07:00