aboutsummaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorPjotr Prins2018-09-15 11:59:49 +0000
committerPjotr Prins2018-09-15 11:59:49 +0000
commit10cc3c77d5f6d385807f019b7894d4b87820cab4 (patch)
tree5e818f61a2dd7c7d4ce11076e829a6e0d75917d3 /INSTALL.md
parent74fdcbcb6fa579f788e4bdadaf004c752349fcf7 (diff)
downloadpangemma-10cc3c77d5f6d385807f019b7894d4b87820cab4.tar.gz
Using Guix container to build with gcc and clang
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md
index be4469f..db7a6e5 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -53,6 +53,18 @@ To build GEMMA from source you can opt to install the build tools with GNU Guix
guix package -i make gcc linux-libre-headers gsl eigen openblas lapack glibc ld-wrapper
+Even better you can create a container in the source tree and run
+
+ guix environment -C guix --ad-hoc gcc gdb gfortran:lib gsl eigen openblas zlib bash ld-wrapper perl
+ make clean
+ make GUIX=$GUIX_ENVIRONMENT check -j 4
+
+and for the Clang edition
+
+ guix environment -C guix --ad-hoc clang gcc gdb gfortran:lib gsl eigen openblas zlib bash ld-wrapper perl
+ make clean
+ make GUIX=$GUIX_ENVIRONMENT CXX=clang++ check -j 4
+
#### GNU Guix reproducible build system
One of the challenges of developing software is dealing with