mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 18:00:24 +02:00
codetools: parse fpc output: keep FULLVERSION value
git-svn-id: branches/fixes_2_0@60662 -
This commit is contained in:
parent
9f7ebc76de
commit
23822a8e52
@ -1717,6 +1717,14 @@ function ParseFPCVerbose(List: TStrings; const WorkDir: string; out
|
||||
if IsUpLine(CurPos,'DEFINED: ') then begin
|
||||
Inc(CurPos, 9);
|
||||
SymbolName:=copy(Line, CurPos, len);
|
||||
if (SameText(SymbolName,'PAS2JS_FULLVERSION')
|
||||
or SameText(SymbolName,'FPC_FULLVERSION'))
|
||||
and Defines.Contains(SymbolName) then
|
||||
begin
|
||||
// keep the FULLVERSION value
|
||||
// Note: pas2js <1.4 had a bug, it gave out DEFINED
|
||||
exit;
|
||||
end;
|
||||
DefineSymbol(SymbolName,'');
|
||||
Exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user