summary refs log tree commit diff stats
path: root/nim/extccomp.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/extccomp.pas')
-rw-r--r--nim/extccomp.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/nim/extccomp.pas b/nim/extccomp.pas
index 51cf009d1..f51e5f690 100644
--- a/nim/extccomp.pas
+++ b/nim/extccomp.pas
@@ -352,13 +352,13 @@ end;
 
 procedure addCompileOption(const option: string);
 begin
-  if strutils.findSubStr(option, compileOptions, strStart) < strStart then
+  if strutils.find(compileOptions, option, strStart) < strStart then
     addOpt(compileOptions, option)
 end;
 
 procedure addLinkOption(const option: string);
 begin
-  if findSubStr(option, linkOptions, strStart) < strStart then
+  if find(linkOptions, option, strStart) < strStart then
     addOpt(linkOptions, option)
 end;