diff options
author | Alberto Ruiz <aruiz@um.es> | 2015-09-15 11:30:08 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2015-09-15 11:30:08 +0200 |
commit | e309d26f7c59becc897e65c8512c329dbcc489fd (patch) | |
tree | 048b14deb16e59c7fc4e4bd1c387ef5f55aad84e | |
parent | adbeab7bc79aad022e1a82fde1a785a39e94379b (diff) | |
parent | 7067687a236689035c83869f87edd50892b4e4f3 (diff) |
Merge pull request #150 from varosi/feature/stack
Stack build configuration for resolver LTS 3.3
-rw-r--r-- | INSTALL.md | 16 | ||||
-rw-r--r-- | stack.yaml | 18 |
2 files changed, 28 insertions, 6 deletions
@@ -57,25 +57,29 @@ using this method. | |||
57 | 57 | ||
58 | ### Alternative Windows build | 58 | ### Alternative Windows build |
59 | 59 | ||
60 | 1) > cabal update | 60 | 1) |
61 | |||
62 | > cabal update | ||
61 | 63 | ||
62 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ | 64 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ |
63 | 65 | ||
64 | 3) In a normal Windows cmd: | 66 | 3) 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 | ||
70 | 1) > cd packages\base | 72 | Similar should be build under other OSes, like Linux and OSX. |
71 | 73 | ||
72 | 1) > stack setup | 74 | 1) |
75 | |||
76 | > stack setup | ||
73 | 77 | ||
74 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ | 78 | 2) Download and unzip somewhere OpenBLAS http://www.openblas.net/ |
75 | 79 | ||
76 | 3) In a normal Windows cmd: | 80 | 3) 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 @@ | |||
1 | flags: | ||
2 | hmatrix-special: | ||
3 | safe-cheap: false | ||
4 | hmatrix-tests: | ||
5 | gsl: true | ||
6 | hmatrix: | ||
7 | openblas: false | ||
8 | hmatrix-gsl: | ||
9 | onlygsl: false | ||
10 | packages: | ||
11 | - packages\tests\ | ||
12 | - packages\special\ | ||
13 | - packages\sparse\ | ||
14 | - packages\gsl\ | ||
15 | - packages\glpk\ | ||
16 | - packages\base\ | ||
17 | extra-deps: [] | ||
18 | resolver: lts-3.3 | ||