summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-04-26 20:54:22 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-04-26 20:54:22 +0000
commit898e4cabf7b38d13d6e862b77adb0dc59b65b8f1 (patch)
tree53ff1a4022127bc00c607dc2885a1921bc395dc9
parent8629490cd66002fb627a5ae14e8f6f652e8df4cd (diff)
downloadfpc-898e4cabf7b38d13d6e862b77adb0dc59b65b8f1.tar.gz
* simplify xtensa-linux building
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@45124 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--compiler/systems.pas7
-rw-r--r--compiler/xtensa/agcpugas.pas2
2 files changed, 8 insertions, 1 deletions
diff --git a/compiler/systems.pas b/compiler/systems.pas
index a5b805cf3a..2e2a739db3 100644
--- a/compiler/systems.pas
+++ b/compiler/systems.pas
@@ -1141,7 +1141,14 @@ begin
{$endif riscv64}
{$ifdef xtensa}
+ {$ifdef linux}
+ {$define default_target_set}
+ default_target(system_xtensa_linux);
+ {$endif}
+
+ {$ifndef default_target_set}
default_target(system_xtensa_embedded);
+ {$endif ndef default_target_set}
{$endif xtensa}
end;
diff --git a/compiler/xtensa/agcpugas.pas b/compiler/xtensa/agcpugas.pas
index c771356e8e..44d2e5b6de 100644
--- a/compiler/xtensa/agcpugas.pas
+++ b/compiler/xtensa/agcpugas.pas
@@ -173,7 +173,7 @@ unit agcpugas;
idtxt : 'AS';
asmbin : 'as';
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];
labelprefix : '.L';
comment : '# ';