Add -threaded to ghc options.
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Sun, 10 Apr 2016 23:27:21 +0000 (00:27 +0100)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Sun, 10 Apr 2016 23:27:21 +0000 (00:27 +0100)
build.bat
build.sh
shaking-up-ghc.cabal

index 465d957..2f6d4cd 100644 (file)
--- a/build.bat
+++ b/build.bat
@@ -6,6 +6,7 @@
              -fno-warn-name-shadowing ^\r
              -XRecordWildCards        ^\r
              src/Main.hs              ^\r
+             -threaded                ^\r
              -isrc                    ^\r
              -rtsopts                 ^\r
              -with-rtsopts=-I0        ^\r
index 7c070e9..95de2e6 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -40,6 +40,7 @@ ghc                           \
     -i"$root/src"             \
     -rtsopts                  \
     -with-rtsopts=-I0         \
+    -threaded                 \
     -outputdir="$root/.shake" \
     -j -O                     \
     -o "$root/.shake/build"
index fc0744d..8ef820f 100644 (file)
@@ -127,4 +127,7 @@ executable ghc-shake
                        , shake                == 0.15.*
                        , transformers         >= 0.4 && < 0.6
                        , unordered-containers == 0.2.*
-    ghc-options:         -Wall -fno-warn-name-shadowing -rtsopts -with-rtsopts=-I0
+    ghc-options:         -Wall
+                         -fno-warn-name-shadowing
+                         -rtsopts -with-rtsopts=-I0
+                         -threaded