From 02da6161ef143a9886c8bce542cd96029c4f527a Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 30 Nov 2024 13:16:50 +0100 Subject: [PATCH] -msse2, not -march=sse2 --- accelerate.cabal | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/accelerate.cabal b/accelerate.cabal index eb380c7b1..af901494e 100644 --- a/accelerate.cabal +++ b/accelerate.cabal @@ -646,11 +646,11 @@ library -- We assume only SSE2 to make Accelerate widely compatible; Windows 8 -- assumes SSE2. However, we tune for native, see the next block. if !arch(aarch64) - cc-options: -march=sse2 - cxx-options: -march=sse2 - ghc-options: -optc=-march=sse2 + cc-options: -msse2 + cxx-options: -msse2 + ghc-options: -optc=-msse2 if impl(ghc >= 8.10) - ghc-options: -optcxx=-march=sse2 + ghc-options: -optcxx=-msse2 -- https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1 if !(os(darwin) && arch(aarch64))