瀏覽代碼

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

florian 1 年之前
父節點
當前提交
e107aa5b5e
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;
 
 begin
+  {$ifndef DARWIN}
+  // SSE4.2 assembly doesn't yet work on Darwin
   {$ifdef CPUINTEL}
   if SSE42Support then
   begin
@@ -1940,6 +1942,7 @@ begin
   end
   else
   {$endif CPUINTEL}
+  {$endif DARWIN}
   {$ifdef CPULOONGARCH64}
   if True then
   begin