diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-06-09 11:31:33 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-06-09 11:42:13 +0200 |
commit | fcda1579ee4021e71272deb1aebb8c8e404cc4cd (patch) | |
tree | 12c525ab367052ad34f82ae77c6581007caa7cfc | |
parent | c0ccb34d23e621a469460133fd9cf6e2223ed07a (diff) |
Better cc-options
-rw-r--r-- | ox-arrays.cabal | 8 |
1 files 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 |