diff --git a/ide/project.pp b/ide/project.pp index b5c1a4f893..e2b3d3cfbc 100644 --- a/ide/project.pp +++ b/ide/project.pp @@ -5045,7 +5045,7 @@ begin XMLConfig.SetValue('Compiler/Date',CompilerFileDate); XMLConfig.SetValue('Params/Value',CompilerParams); XMLConfig.SetDeleteValue('Complete/Value',Complete,true); - InvalidateFileStateCache; + InvalidateFileStateCache(StateFile); XMLConfig.Flush; finally XMLConfig.Free; diff --git a/packager/packagesystem.pas b/packager/packagesystem.pas index 11ab269a85..61ebc6c43a 100644 --- a/packager/packagesystem.pas +++ b/packager/packagesystem.pas @@ -3959,7 +3959,7 @@ begin // use the default output directory, if it is relative // (this way the fallback creates the same amount of target directories) Dir:=APackage.CompilerOptions.ParsedOpts.Values[pcosOutputDir].UnparsedValue; - Dir:=SetDirSeparators(APackage.SubstitutePkgMacros(Dir,false)); + Dir:=APackage.SubstitutePkgMacros(Dir,false); if FilenameIsAbsolute(Dir) then begin // it is not relative => create a default one Dir:='$(TargetOS)-$(TargetCPU)';