From fcda1579ee4021e71272deb1aebb8c8e404cc4cd Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 9 Jun 2024 11:31:33 +0200 Subject: Better cc-options --- ox-arrays.cabal | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ox-arrays.cabal b/ox-arrays.cabal index f114709..69b7c55 100644 --- a/ox-arrays.cabal +++ b/ox-arrays.cabal @@ -37,8 +37,12 @@ library vector hs-source-dirs: src c-sources: cbits/arith.c - -- hmatrix assumes sse2, so we can too - cc-options: -O3 -msse2 -Wall -Wextra + + cc-options: -O3 -Wall -Wextra -std=c99 + if arch(x86_64) || arch(i386) + -- hmatrix assumes sse2, so we can too + cc-options: -msse2 + default-language: Haskell2010 ghc-options: -Wall other-extensions: TemplateHaskell -- cgit v1.2.3-70-g09d2