Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

For fun, compiling via C.

  • Loading branch information...
commit e38d8fd218a7f20e94bfb5f1a3b01c4594c42fe5 1 parent 327cdbd
Jesper Louis Andersen jlouis authored
Showing with 10 additions and 0 deletions.
  1. +7 −0 Combinatorrent.cabal
  2. +3 −0  Makefile
7 Combinatorrent.cabal
View
@@ -37,6 +37,10 @@ flag threadscope
description: Enable the eventlog necessary for ThreadScope
default: False
+flag viac
+ description: Build executable over GCC compilation
+ default: False
+
executable Combinatorrent
hs-source-dirs: src
main-is: Combinatorrent.hs
@@ -88,6 +92,9 @@ executable Combinatorrent
if impl(ghc >= 6.13.0)
ghc-options: -rtsopts
+ if flag(viac)
+ ghc-options: -fvia-C -optc-O3
+
if flag(threaded)
ghc-options: -threaded
3  Makefile
View
@@ -11,6 +11,9 @@ test: build
conf:
runghc Setup.lhs configure --user --enable-library-profiling --enable-executable-profiling --enable-optimization=2
+conf-viac:
+ runghc Setup.lhs configure --flags="viac" --user --enable-library-profiling --enable-executable-profiling --enable-optimization=2
+
conf-debug:
runghc Setup.lhs configure --flags="debug" --user --enable-library-profiling --enable-executable-profiling --enable-optimization
Please sign in to comment.
Something went wrong with that request. Please try again.