ソースを参照

* make windres the default resource compiler on x86_64-win64

git-svn-id: trunk@27041 -
florian 11 年 前
コミット
2c5a0ffc89
2 ファイル変更2 行追加4 行削除
  1. 1 1
      compiler/systems/i_win.pas
  2. 1 3
      compiler/systems/t_win.pas

+ 1 - 1
compiler/systems/i_win.pas

@@ -138,7 +138,7 @@ unit i_win;
             link         : ld_int_windows;
             linkextern   : ld_windows;
             ar           : ar_gnu_ar;
-            res          : res_win64_gorc;
+            res          : res_gnu_windres;
             dbg          : dbg_dwarf2;
             script       : script_dos;
             endian       : endian_little;

+ 1 - 3
compiler/systems/t_win.pas

@@ -101,7 +101,6 @@ implementation
 
 
   const
-{$ifndef x86_64}
     res_gnu_windres_info : tresinfo =
         (
           id     : res_gnu_windres;
@@ -112,7 +111,6 @@ implementation
           resourcefileclass : nil;
           resflags : [];
         );
-{$else x86_64}
     res_win64_gorc_info : tresinfo =
         (
           id     : res_win64_gorc;
@@ -123,7 +121,6 @@ implementation
           resourcefileclass : nil;
           resflags : [];
         );
-{$endif x86_64}
 
 
   Procedure GlobalInitSysInitUnitName(Linker : TLinker);
@@ -1837,6 +1834,7 @@ initialization
   RegisterImport(system_x86_64_win64,TImportLibWin);
   RegisterExport(system_x86_64_win64,TExportLibWin);
   RegisterDLLScanner(system_x86_64_win64,TDLLScannerWin);
+  RegisterRes(res_gnu_windres_info,TWinLikeResourceFile);
   RegisterRes(res_win64_gorc_info,TWinLikeResourceFile);
   RegisterTarget(system_x64_win64_info);
 {$endif x86_64}