commit 1517cd938c0447460d32872e75ab798d2d5d245b
parent a05152fd7faa82578e219f952dd7daeb9d45038f
Author: Jared Tobin <jared@jtobin.io>
Date: Sun, 23 Nov 2025 17:46:10 +0400
meta: expose an 'llvm' flag
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/ppad-fixed.cabal b/ppad-fixed.cabal
@@ -13,6 +13,11 @@ extra-doc-files: CHANGELOG
description:
Representations for, and operations on, large fixed-width integers.
+flag llvm
+ description: Use GHC's LLVM backend.
+ default: False
+ manual: True
+
source-repository head
type: git
location: git.ppad.tech/fixed.git
@@ -22,6 +27,8 @@ library
hs-source-dirs: lib
ghc-options:
-Wall
+ if flag(llvm)
+ ghc-options: -fllvm -O2
exposed-modules:
Data.Choice
, Data.Word.Limb