In case of a core file, if the core file architecture(like x86_64) is incompatible with that of Host architecture(like Mips64) then platform is set to remote-platform. If the remote-platform is not connected then SBPlatform::GetTriple() will return none. Hence we assume target platform is same as the host platform.
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
import lldb
dbg = lldb.SBDebugger.Create()
print dbg.GetSelectedPlatform().GetName()
host
print dbg.GetSelectedPlatform().GetTriple()
mips64el--linux-gnu
dbg.CreateTarget("linux-x86_64")
<lldb.SBTarget; proxy of <Swig Object of type 'lldb::SBTarget *' at 0x7f1fb4615390> >
print dbg.GetSelectedPlatform().GetName()
remote-linux
print dbg.GetSelectedPlatform().GetTriple()
None
print dbg.GetSelectedPlatform().IsConnected()
False