Print compiler information in a formatted way.
(compiler_info: CompilerInfo, board_name: str)
| 356 | |
| 357 | |
| 358 | def print_compiler_info(compiler_info: CompilerInfo, board_name: str): |
| 359 | """Print compiler information in a formatted way.""" |
| 360 | print(f"\n🔧 Compiler Information for {board_name.upper()}:") |
| 361 | print("=" * 50) |
| 362 | print(f"Compiler Type: {compiler_info.compiler_type or 'Unknown'}") |
| 363 | print(f"Build Type: {compiler_info.build_type or 'Unknown'}") |
| 364 | print(f"C Compiler: {compiler_info.cc_path or 'Unknown'}") |
| 365 | print(f"C++ Compiler: {compiler_info.cxx_path or 'Unknown'}") |
| 366 | |
| 367 | if compiler_info.cc_flags: |
| 368 | print(f"\nC Flags ({len(compiler_info.cc_flags)}):") |
| 369 | for flag in compiler_info.cc_flags: |
| 370 | print(f" {flag}") |
| 371 | |
| 372 | if compiler_info.cxx_flags: |
| 373 | print(f"\nC++ Flags ({len(compiler_info.cxx_flags)}):") |
| 374 | for flag in compiler_info.cxx_flags: |
| 375 | print(f" {flag}") |
| 376 | |
| 377 | |
| 378 | def print_toolchain_aliases(aliases: dict[str, str], board_name: str): |