Browse Source

* simplify xtensa-linux building

git-svn-id: trunk@45124 -
florian 5 years ago
parent
commit
db9a284d60
2 changed files with 8 additions and 1 deletions
  1. 7 0
      compiler/systems.pas
  2. 1 1
      compiler/xtensa/agcpugas.pas

+ 7 - 0
compiler/systems.pas

@@ -1141,7 +1141,14 @@ begin
 {$endif riscv64}
 {$endif riscv64}
 
 
 {$ifdef xtensa}
 {$ifdef xtensa}
+  {$ifdef linux}
+    {$define default_target_set}
+    default_target(system_xtensa_linux);
+  {$endif}
+
+  {$ifndef default_target_set}
   default_target(system_xtensa_embedded);
   default_target(system_xtensa_embedded);
+  {$endif ndef default_target_set}
 {$endif xtensa}
 {$endif xtensa}
 
 
 end;
 end;

+ 1 - 1
compiler/xtensa/agcpugas.pas

@@ -173,7 +173,7 @@ unit agcpugas;
             idtxt  : 'AS';
             idtxt  : 'AS';
             asmbin : 'as';
             asmbin : 'as';
             asmcmd : '-o $OBJ $EXTRAOPT $ASM --longcalls';
             asmcmd : '-o $OBJ $EXTRAOPT $ASM --longcalls';
-            supported_targets : [system_xtensa_embedded];
+            supported_targets : [system_xtensa_embedded,system_xtensa_linux,system_xtensa_freertos];
             flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
             flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
             labelprefix : '.L';
             labelprefix : '.L';
             comment : '# ';
             comment : '# ';