summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2015-09-15 11:30:08 +0200
committerAlberto Ruiz <aruiz@um.es>2015-09-15 11:30:08 +0200
commite309d26f7c59becc897e65c8512c329dbcc489fd (patch)
tree048b14deb16e59c7fc4e4bd1c387ef5f55aad84e
parentadbeab7bc79aad022e1a82fde1a785a39e94379b (diff)
parent7067687a236689035c83869f87edd50892b4e4f3 (diff)
Merge pull request #150 from varosi/feature/stack
Stack build configuration for resolver LTS 3.3
-rw-r--r--INSTALL.md16
-rw-r--r--stack.yaml18
2 files changed, 28 insertions, 6 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 7c978f9..014d614 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -57,25 +57,29 @@ using this method.
57 57
58### Alternative Windows build 58### Alternative Windows build
59 59
601) > cabal update 601)
61
62 > cabal update
61 63
622) Download and unzip somewhere OpenBLAS http://www.openblas.net/ 642) Download and unzip somewhere OpenBLAS http://www.openblas.net/
63 65
643) In a normal Windows cmd: 663) In a normal Windows cmd:
65 67
66 > cabal install --flags=openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dir=C:\...\OpenBLAS\include 68 > cabal install --flags=openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dir=C:\...\OpenBLAS\include
67 69
68### Stack-based Windows build 70### Stack-based Windows build
69 71
701) > cd packages\base 72Similar should be build under other OSes, like Linux and OSX.
71 73
721) > stack setup 741)
75
76 > stack setup
73 77
742) Download and unzip somewhere OpenBLAS http://www.openblas.net/ 782) Download and unzip somewhere OpenBLAS http://www.openblas.net/
75 79
763) In a normal Windows cmd: 803) Example in a normal Windows cmd for building hmatrix base lib:
77 81
78 > stack install --flag hmatrix:openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dir=C:\...\OpenBLAS\include 82 > stack install hmatrix --flag hmatrix:openblas --extra-lib-dirs=C:\...\OpenBLAS\lib --extra-include-dir=C:\...\OpenBLAS\include
79 83
80## Tests ############################################### 84## Tests ###############################################
81 85
diff --git a/stack.yaml b/stack.yaml
new file mode 100644
index 0000000..88394c7
--- /dev/null
+++ b/stack.yaml
@@ -0,0 +1,18 @@
1flags:
2 hmatrix-special:
3 safe-cheap: false
4 hmatrix-tests:
5 gsl: true
6 hmatrix:
7 openblas: false
8 hmatrix-gsl:
9 onlygsl: false
10packages:
11- packages\tests\
12- packages\special\
13- packages\sparse\
14- packages\gsl\
15- packages\glpk\
16- packages\base\
17extra-deps: []
18resolver: lts-3.3