Explorar o código

* Add FPCBINDIR macro for paths

git-svn-id: trunk@44697 -
michael %!s(int64=5) %!d(string=hai) anos
pai
achega
f3560004cf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      compiler/globals.pas

+ 1 - 0
compiler/globals.pas

@@ -941,6 +941,7 @@ implementation
          Replace(s,'$FPCDATE',date_string);
          Replace(s,'$FPCDATE',date_string);
          Replace(s,'$FPCCPU',target_cpu_string);
          Replace(s,'$FPCCPU',target_cpu_string);
          Replace(s,'$FPCOS',target_os_string);
          Replace(s,'$FPCOS',target_os_string);
+         Replace(s,'$FPCBINDIR',ExtractFilePath(FixFileName(system.paramstr(0))));
          if (tf_use_8_3 in Source_Info.Flags) or
          if (tf_use_8_3 in Source_Info.Flags) or
             (tf_use_8_3 in Target_Info.Flags) then
             (tf_use_8_3 in Target_Info.Flags) then
            Replace(s,'$FPCTARGET',target_os_string)
            Replace(s,'$FPCTARGET',target_os_string)