Revert "[immediate] Load Foundation early enough for bridging"

This commit is contained in:
Ben Langmuir
2024-08-06 16:10:42 -07:00
committed by GitHub
parent 370bcec229
commit 1f00ffe42c
5 changed files with 0 additions and 65 deletions

View File

@@ -1955,13 +1955,6 @@ int swift::performFrontend(ArrayRef<const char *> Args,
return finishDiagProcessing(1, /*verifierEnabled*/ false);
}
// Scripts that use the Foundation framework need it loaded early for bridging
// to work correctly on Darwin platforms. On other platforms this is a no-op.
if (Invocation.getFrontendOptions().RequestedAction ==
FrontendOptions::ActionType::Immediate) {
loadFoundationIfNeeded(Instance->getDiags());
}
// Don't ask clients to report bugs when running a script in immediate mode.
// When a script asserts the compiler reports the error with the same
// stacktrace as a compiler crash. From here we can't tell which is which,