on master help sign in
Add LLVM support for benchmarks
34b7603Bryan O'Sullivan
benchmarks/text-benchmarks.cabal+6
@@ -15,12 +15,18 @@ build-type: Simple
15
15
16cabal-version: >=1.2
16cabal-version: >=1.2
17
17
18+flag llvm
19+ description: use LLVM
20+ default: False
21+
18executable text-benchmarks
22executable text-benchmarks
19 hs-source-dirs: haskell ..
23 hs-source-dirs: haskell ..
20 c-sources: ../cbits/cbits.c
24 c-sources: ../cbits/cbits.c
21 cbits/time_iconv.c
25 cbits/time_iconv.c
22 main-is: Benchmarks.hs
26 main-is: Benchmarks.hs
23 ghc-options: -Wall -O2
27 ghc-options: -Wall -O2
28+ if flag(llvm)
29+ ghc-options: -fllvm
24 cpp-options: -DHAVE_DEEPSEQ -DINTEGER_GMP
30 cpp-options: -DHAVE_DEEPSEQ -DINTEGER_GMP
25 build-depends: base == 4.*,
31 build-depends: base == 4.*,
26 binary,
32 binary,