diff options
Diffstat (limited to 'compiler/pmodules.pas')
-rw-r--r-- | compiler/pmodules.pas | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/pmodules.pas b/compiler/pmodules.pas index 2556bc9d07..6faded7288 100644 --- a/compiler/pmodules.pas +++ b/compiler/pmodules.pas @@ -378,11 +378,10 @@ implementation end; { CPU targets with microcontroller support can add a controller specific unit } -{$if defined(ARM) or defined(AVR) or defined(MIPSEL)} - if (target_info.system in systems_embedded) and (current_settings.controllertype<>ct_none) and + if ControllerSupport and (target_info.system in systems_embedded) and + (current_settings.controllertype<>ct_none) and (embedded_controllers[current_settings.controllertype].controllerunitstr<>'') then AddUnit(embedded_controllers[current_settings.controllertype].controllerunitstr); -{$endif ARM AVR MIPSEL} end; |