From 3c57eb42f91348c5f066f70d7f7700b843dfbeda Mon Sep 17 00:00:00 2001 From: Karoly Balogh Date: Mon, 8 Jan 2024 13:53:02 +0100 Subject: [PATCH] do not display the changing assembler note, if the internal and the external assemblers are the same, or there's no internal assembler defined --- compiler/options.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/options.pas b/compiler/options.pas index 7ca3ef567f..4408c23357 100644 --- a/compiler/options.pas +++ b/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}