diff --git a/compiler/options.pas b/compiler/options.pas index a183366d98..258695620e 100644 --- a/compiler/options.pas +++ b/compiler/options.pas @@ -3576,7 +3576,7 @@ if (target_info.abi = abi_eabihf) then {$endif ARM} { inline bsf/bsr implementation } -{$if defined(i386) or defined(x86_64)} +{$if not defined(llvm) and (defined(i386) or defined(x86_64))} def_system_macro('FPC_HAS_INTERNAL_BSF'); def_system_macro('FPC_HAS_INTERNAL_BSR'); {$endif}