Merge pull request #706 from DrDoof/feat/banner-compiler

build: show the compiler and the toolchain in the version banner
This commit is contained in:
logicog authored and GitHub committed 2026-10-26 14:41:50 +01:00
commit 80a30b705e
3 files changed
+16 -1

No files matched your search

+2
View File
@@ -1840,6 +1840,8 @@ void print_gpio_status(void) {
void print_sw_version(void) __banked {
print_string("Software version: " VERSION_SW);
print_string("\nBuild date: " BUILD_DATE);
print_string("\nCompiler: SDCC " STR(__SDCC_VERSION_MAJOR) "." STR(__SDCC_VERSION_MINOR) "." STR(__SDCC_VERSION_PATCH) " #" STR(__SDCC_REVISION));
print_string("\nToolchain: " SDCC_TOOLCHAIN);
print_string("\nHardware: ");
print_string(machine.machine_name);
write_char('\n');