瀏覽代碼

* Refactor, so the combination CPU-OS-SubTarget is a record. Allows for extension if need be

Michael VAN CANNEYT 2 年之前
父節點
當前提交
668901886e
共有 3 個文件被更改,包括 412 次插入110 次删除
  1. 410 108
      packages/fpmkunit/src/fpmkunit.pp
  2. 1 1
      packages/gdbint/fpmake.pp
  3. 1 1
      packages/ide/fpmake.pp

File diff suppressed because it is too large
+ 410 - 108
packages/fpmkunit/src/fpmkunit.pp


+ 1 - 1
packages/gdbint/fpmake.pp

@@ -93,7 +93,7 @@ begin
       Installer.BuildEngine.Log(vlCommand,'GDB-lib found, compiling and running gdbver to obtain GDB-version');
       Installer.BuildEngine.Compile(P,GdbVerTarget);
       Cmd:=Installer.BuildEngine.AddPathPrefix(p,
-            p.GetBinOutputDir(Defaults.CPU, Defaults.OS))+
+            p.GetBinOutputDir(Defaults.CompileTarget ))+
             PathDelim+
             AddProgramExtension('gdbver',Defaults.BuildOS);
       Opts:=TStringList.Create;

+ 1 - 1
packages/ide/fpmake.pp

@@ -307,7 +307,7 @@ begin
         if CompilerTarget<>Defaults.CPU then
           begin
             T.SetExeName(AddProgramExtension(CPUToString(CompilerTarget)+'-fp',Defaults.BuildOS));
-            P.SetUnitsOutputDir(P.GetUnitsOutputDir(Defaults.BuildCPU,Defaults.BuildOS)+CPUToString(CompilerTarget));
+            P.SetUnitsOutputDir(P.GetUnitsOutputDir(Defaults.BuildTarget)+CPUToString(CompilerTarget));
             P.Options.Add('-dCROSSGDB');
           end;
 

Some files were not shown because too many files changed in this diff