Browse Source

* cross compiliation defines

florian 20 years ago
parent
commit
16718b81e4
1 changed files with 10 additions and 1 deletions
  1. 10 1
      compiler/options.pas

+ 10 - 1
compiler/options.pas

@@ -1859,6 +1859,12 @@ begin
   def_system_macro('FPC_REQUIRES_PROPER_ALIGNMENT');
   def_system_macro('FPC_REQUIRES_PROPER_ALIGNMENT');
 {$endif arm}
 {$endif arm}
 
 
+  if source_info.system<>target_info.system then
+    def_system_macro('FPC_CROSSCOMPILING');
+
+  if source_info.cpu<>target_info.cpu then
+    def_system_macro('FPC_CPUCROSSCOMPILING');
+
   { read configuration file }
   { read configuration file }
   if (not disable_configfile) and
   if (not disable_configfile) and
      (ppccfg<>'') then
      (ppccfg<>'') then
@@ -2092,7 +2098,10 @@ finalization
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.165  2005-02-14 17:13:06  peter
+  Revision 1.166  2005-02-19 18:10:57  florian
+    * cross compiliation defines
+
+  Revision 1.165  2005/02/14 17:13:06  peter
     * truncate log
     * truncate log
 
 
   Revision 1.164  2005/02/06 21:33:28  peter
   Revision 1.164  2005/02/06 21:33:28  peter