Browse Source

* Added ability to clear global-variable containing the compiler-version info

git-svn-id: trunk@33937 -
joost 9 năm trước cách đây
mục cha
commit
561c7b0862
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      packages/fppkg/src/pkgoptions.pp

+ 8 - 0
packages/fppkg/src/pkgoptions.pp

@@ -150,6 +150,7 @@ var
   FPMakeCompilerOptions : TCompilerOptions;
 
 procedure LoadGlobalDefaults(CfgFile: string);
+procedure ClearCompilerDefaults;
 procedure LoadCompilerDefaults;
 
 Implementation
@@ -246,6 +247,13 @@ begin
   GlobalOptions.LogValues(llDebug);
 end;
 
+procedure ClearCompilerDefaults;
+begin
+  CompilerOptions.Free;
+  FPMakeCompilerOptions.Free;
+  CompilerOptions:=TCompilerOptions.Create;
+  FPMakeCompilerOptions:=TCompilerOptions.Create;
+end;
 
 procedure LoadCompilerDefaults;
 var