LLVM Error: 'Unknown target triple' – TargetInfo component
Goal: Configure meaningful diagnostics We want to keep only critical errors while suppressing routine warnings, using LLVM’s DiagnosticHandler API. Constraints: The handler must not swallow fatal errors such as the documented “LLVM Error: 'Unknown target triple'” emitted by TargetInfo when an invalid triple is passed to TargetMachine::createTargetMachine. Un