mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-02 19:24:46 +01:00
IDE: comments
git-svn-id: trunk@45278 -
This commit is contained in:
parent
1fc6cfbc6a
commit
634628e1dc
@ -170,16 +170,18 @@ function GetXMLPathForCompilerOptions(XMLConfig: TXMLConfig): string;
|
||||
var
|
||||
FileVersion: Integer;
|
||||
begin
|
||||
if XMLConfig.GetValue('SearchPaths/CompilerPath/Value','')<>'' then
|
||||
Result:=''
|
||||
else if XMLConfig.GetValue(
|
||||
'CompilerOptions/SearchPaths/CompilerPath/Value','')<>''
|
||||
then
|
||||
Result:='CompilerOptions/'
|
||||
else if XMLConfig.GetValue(
|
||||
'Package/CompilerOptions/SearchPaths/CompilerPath/Value','')<>''
|
||||
then
|
||||
Result:='Package/CompilerOptions/'
|
||||
if XMLConfig.GetValue('SearchPaths/CompilerPath/Value','')<>'' then begin
|
||||
// old lpi file
|
||||
Result:='';
|
||||
end else if XMLConfig.GetValue('CompilerOptions/SearchPaths/CompilerPath/Value','')<>''
|
||||
then begin
|
||||
// current lpi file
|
||||
Result:='CompilerOptions/';
|
||||
end else if XMLConfig.GetValue('Package/CompilerOptions/SearchPaths/CompilerPath/Value','')<>''
|
||||
then begin
|
||||
// current lpk file
|
||||
Result:='Package/CompilerOptions/';
|
||||
end
|
||||
else begin
|
||||
// default: depending on file type
|
||||
Result:='CompilerOptions/';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user