mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #75594 from benlangmuir/script-load-foundation-early
[immediate] Load Foundation early enough for bridging
This commit is contained in:
@@ -115,6 +115,8 @@ ERROR(error_immediate_mode_missing_library,none,
|
||||
(unsigned, StringRef))
|
||||
ERROR(error_immediate_mode_primary_file,none,
|
||||
"immediate mode is incompatible with -primary-file", ())
|
||||
WARNING(warning_immediate_mode_cannot_load_foundation,none,
|
||||
"immediate mode failed to load Foundation: %0", (StringRef))
|
||||
ERROR(error_missing_frontend_action,none,
|
||||
"no frontend action was selected", ())
|
||||
ERROR(error_invalid_source_location_str,none,
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
namespace swift {
|
||||
class CompilerInstance;
|
||||
class DiagnosticEngine;
|
||||
class IRGenOptions;
|
||||
class SILOptions;
|
||||
class SILModule;
|
||||
@@ -44,6 +45,9 @@ namespace swift {
|
||||
|
||||
int RunImmediatelyFromAST(CompilerInstance &CI);
|
||||
|
||||
/// On platforms that support ObjC bridging from the Foundation framework,
|
||||
/// ensure that Foundation is loaded early enough. Otherwise does nothing.
|
||||
void loadFoundationIfNeeded(DiagnosticEngine &Diags);
|
||||
} // end namespace swift
|
||||
|
||||
#endif // SWIFT_IMMEDIATE_IMMEDIATE_H
|
||||
|
||||
Reference in New Issue
Block a user