Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

For fun, compiling via C.

  • Loading branch information...
commit e38d8fd218a7f20e94bfb5f1a3b01c4594c42fe5 1 parent 327cdbd
Jesper Louis Andersen jlouis authored

Showing 2 changed files with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 Combinatorrent.cabal
  2. +3 0  Makefile
7 Combinatorrent.cabal
@@ -37,6 +37,10 @@ flag threadscope
37 37 description: Enable the eventlog necessary for ThreadScope
38 38 default: False
39 39
  40 +flag viac
  41 + description: Build executable over GCC compilation
  42 + default: False
  43 +
40 44 executable Combinatorrent
41 45 hs-source-dirs: src
42 46 main-is: Combinatorrent.hs
@@ -88,6 +92,9 @@ executable Combinatorrent
88 92 if impl(ghc >= 6.13.0)
89 93 ghc-options: -rtsopts
90 94
  95 + if flag(viac)
  96 + ghc-options: -fvia-C -optc-O3
  97 +
91 98 if flag(threaded)
92 99 ghc-options: -threaded
93 100
3  Makefile
@@ -11,6 +11,9 @@ test: build
11 11 conf:
12 12 runghc Setup.lhs configure --user --enable-library-profiling --enable-executable-profiling --enable-optimization=2
13 13
  14 +conf-viac:
  15 + runghc Setup.lhs configure --flags="viac" --user --enable-library-profiling --enable-executable-profiling --enable-optimization=2
  16 +
14 17 conf-debug:
15 18 runghc Setup.lhs configure --flags="debug" --user --enable-library-profiling --enable-executable-profiling --enable-optimization
16 19

0 comments on commit e38d8fd

Please sign in to comment.
Something went wrong with that request. Please try again.