From 437e7fa75af92b1ebf2dc97084b019374481fddf Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 18 Jul 2024 22:38:28 +0200 Subject: [PATCH] * make warning on unsupported esp-idf version a warning string so it can be translated --- compiler/msg/errore.msg | 3 +++ compiler/pmodules.pas | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/compiler/msg/errore.msg b/compiler/msg/errore.msg index 505caad31f..ea1f7917b6 100644 --- a/compiler/msg/errore.msg +++ b/compiler/msg/errore.msg @@ -3513,6 +3513,9 @@ unit_u_ppu_symansistr_mismatch=10069_U_Skipping unit, PPU and compiler have to b unit_u_ppu_wasm_threads_mismatch=10070_U_PPU and program must both be compiled with or without WebAssembly multithreading support % The user is compiling a program with multithreading turned on, but the unit was compiled with multithreading off, % or vice versa. +unit_w_unsupported_esp_idf_version=10071_W_Unsupported esp-idf version +% FPC supports only certain ESP-IDF versions. It is very unlikely that the resulting program works if this +% warning is thrown. % \end{description} # EndOfTeX diff --git a/compiler/pmodules.pas b/compiler/pmodules.pas index 5b32ae4f73..cda9f8a666 100644 --- a/compiler/pmodules.pas +++ b/compiler/pmodules.pas @@ -524,7 +524,7 @@ implementation else if idf_version>=50200 then CheckAddUnit('espidf_50200') else - Comment(V_Warning, 'Unsupported esp-idf version'); + Message(unit_w_unsupported_esp_idf_version); end else if (current_settings.controllertype=ct_esp8266) then begin @@ -533,7 +533,7 @@ implementation else if idf_version>=30400 then CheckAddUnit('esp8266rtos_30400') else - Comment(V_Warning, 'Unsupported esp-rtos version'); + Message(unit_w_unsupported_esp_idf_version); end; {$endif XTENSA} {$ifdef RISCV32} @@ -558,7 +558,7 @@ implementation else if idf_version>=40400 then CheckAddUnit('esp32c3idf_40400') else - Comment(V_Warning, 'Unsupported esp-idf version'); + Message(unit_w_unsupported_esp_idf_version); end; if (current_settings.controllertype=ct_esp32c6) then begin