Skip to content

Commit

Permalink
-msse2, not -march=sse2
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsmeding committed Nov 30, 2024
1 parent a57f1e1 commit 02da616
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions accelerate.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 02da616

Please sign in to comment.