File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5912,6 +5912,14 @@ void Process::PrintWarningCantLoadSwiftModule(const Module &module,
5912
5912
}
5913
5913
5914
5914
void Process::PrintWarningToolchainMismatch (const SymbolContext &sc) {
5915
+ if (GetTarget ().GetProcessLaunchInfo ().IsScriptedProcess ())
5916
+ // It's very likely that the debugger used to launch the ScriptedProcess
5917
+ // will not match the compiler version used to build the target, and we
5918
+ // shouldn't need Swift's serialized AST to symbolicate the frame where we
5919
+ // stopped. However, because this is called from a generic place
5920
+ // (Thread::FrameSelectedCallback), it's safe to silence the warning for
5921
+ // Scripted Processes.
5922
+ return ;
5915
5923
if (!GetWarningsToolchainMismatch ())
5916
5924
return ;
5917
5925
if (!sc.module_sp || !sc.comp_unit )
You can’t perform that action at this time.
0 commit comments