diff options
author | Tom Smeding <tom@tomsmeding.com> | 2025-04-15 17:18:18 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2025-04-15 17:18:18 +0200 |
commit | 8210378510b92f8ec224c6adcda3ecc77625f1a0 (patch) | |
tree | a0d863507d73dbb6b766ff8a77936ca1502d8a26 /ox-arrays.cabal | |
parent | a78ddeaa5d34fa8b6fa52eee42977cc46e8c36a5 (diff) |
arith: Don't use C23 features
Diffstat (limited to 'ox-arrays.cabal')
-rw-r--r-- | ox-arrays.cabal | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ox-arrays.cabal b/ox-arrays.cabal index ecd3ba7..39a2782 100644 --- a/ox-arrays.cabal +++ b/ox-arrays.cabal @@ -27,6 +27,13 @@ flag nonportable-simd default: False manual: True +flag pedantic-c-warnings + description: + Compile embedded C code with a high warning level. Only useful for + ox-arrays developers. + default: False + manual: True + library exposed-modules: Data.Array.Mixed.Internal.Arith @@ -82,7 +89,9 @@ library strided-array-ops hs-source-dirs: ops c-sources: cbits/arith.c - cc-options: -O3 -Wall -Wextra -std=c99 + cc-options: -O3 -std=c11 + if flag(pedantic-c-warnings) + cc-options: -Wall -Wextra -pedantic if flag(nonportable-simd) cc-options: -march=native elif arch(x86_64) || arch(i386) |