瀏覽代碼

do not display the changing assembler note, if the internal and the external assemblers are the same, or there's no internal assembler defined

Karoly Balogh 1 年之前
父節點
當前提交
3c57eb42f9
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/options.pas

+ 4 - 1
compiler/options.pas

@@ -5191,7 +5191,10 @@ begin
       ((option.paratargetasm=as_none) and (target_info.endian<>source_info.endian)) then
    begin
      if ((option.paratargetasm=as_none) and (target_info.endian<>source_info.endian)) then
-       Message(option_switch_bin_to_src_assembler_cross_endian)
+       begin
+         if not ((target_info.assem = target_info.assemextern) or (target_info.assem = as_none)) then
+           Message(option_switch_bin_to_src_assembler_cross_endian);
+       end
      else
        Message(option_switch_bin_to_src_assembler);
 {$ifdef llvm}