Browse Source

* patch by foxpas to disable use of crc32 instructions on x86_64-darwin as they apparently don't work, resolves #40344

florian 1 year ago
parent
commit
e107aa5b5e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/rtl-generics/src/generics.hashes.pas

+ 3 - 0
packages/rtl-generics/src/generics.hashes.pas

@@ -1932,6 +1932,8 @@ begin
 end;
 end;
 
 
 begin
 begin
+  {$ifndef DARWIN}
+  // SSE4.2 assembly doesn't yet work on Darwin
   {$ifdef CPUINTEL}
   {$ifdef CPUINTEL}
   if SSE42Support then
   if SSE42Support then
   begin
   begin
@@ -1940,6 +1942,7 @@ begin
   end
   end
   else
   else
   {$endif CPUINTEL}
   {$endif CPUINTEL}
+  {$endif DARWIN}
   {$ifdef CPULOONGARCH64}
   {$ifdef CPULOONGARCH64}
   if True then
   if True then
   begin
   begin