codetools: fixed IsCompilerExecutable allowing fpc*, bug #36689

git-svn-id: branches/fixes_2_0@62652 -
This commit is contained in:
mattias 2020-02-20 09:10:01 +00:00
parent 67fb0f4032
commit 68bb23dcf7
2 changed files with 1 additions and 1 deletions

View File

@ -3874,7 +3874,7 @@ begin
// check fpc<something>
// Note: fpc.exe is just a wrapper, it can call pas2js
if CompareFilenames(ShortFilename,'fpc')=0 then
if CompareFilenames(LeftStr(ShortFilename,3),'fpc')=0 then
exit(true);
ErrorMsg:='fpc executable should start with fpc or ppc';

Binary file not shown.