[Lldb-commits] [lldb] [lldb] Set default object format to `MachO` in `ObjectFileMachO` (PR #142704)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 5 16:14:04 PDT 2025


jasonmolenda wrote:

Aha, I see.  Any call to llvm's `setObjectFormat` is going to add this to the triple string if there is no environ set:

```
   1608	void Triple::setObjectFormat(ObjectFormatType Kind) {
   1609	  if (Environment == UnknownEnvironment)
-> 1610	    return setEnvironmentName(getObjectFormatTypeName(Kind));
   1611	
   1612	  setEnvironmentName((getEnvironmentTypeName(Environment) + Twine("-") +
   1613	                      getObjectFormatTypeName(Kind)).str());
   1614	}
```

Well that's not great.  I really don't want `-macho` in our triples, it looks terrible.

https://github.com/llvm/llvm-project/pull/142704


More information about the lldb-commits mailing list