diff options
Diffstat (limited to 'nim/magicsys.pas')
-rw-r--r-- | nim/magicsys.pas | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nim/magicsys.pas b/nim/magicsys.pas index 55ec0b002..7a717e61d 100644 --- a/nim/magicsys.pas +++ b/nim/magicsys.pas @@ -96,9 +96,10 @@ begin result := StrTableGet(compilerprocs, ident); if result = nil then begin result := StrTableGet(rodCompilerProcs, ident); - if result = nil then rawMessage(errSystemNeeds, name); - strTableAdd(compilerprocs, result); - if result.kind = skStub then loadStub(result); + if result <> nil then begin + strTableAdd(compilerprocs, result); + if result.kind = skStub then loadStub(result); + end; // A bit hacky that this code is needed here, but it is the easiest // solution in order to avoid special cases for sfCompilerProc in the // rodgen module. Another solution would be to always recompile the system |