浏览代码

Disable -EB/-EL passing for freertos OS as the corresponding released binutils do not support this option

Pierre Muller 2 年之前
父节点
当前提交
d24548f8d8
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/xtensa/agcpugas.pas

+ 4 - 1
compiler/xtensa/agcpugas.pas

@@ -66,7 +66,10 @@ unit agcpugas;
     function TXtensaGNUAssembler.MakeCmdLine: TCmdStr;
       begin
         result:=inherited MakeCmdLine;
-        if target_info.endian=endian_little then
+	{ Released FreeRTOS binutils do not support -EB/-EL options }
+        if target_info.system=system_xtensa_freertos then
+          Replace(result,'$SHORTENDIAN','')
+        else if target_info.endian=endian_little then
           Replace(result,'$SHORTENDIAN','-EL')
         else
           Replace(result,'$SHORTENDIAN','-EB');