Skip to content

Commit

Permalink
Merge pull request #90 from FluidNumerics/88-error-setting-compiler-f…
Browse files Browse the repository at this point in the history
…or-spack

Clarify setting preferred compiler.
  • Loading branch information
fluidnumerics-joe authored Dec 26, 2024
2 parents 4d8e6aa + 5800c03 commit 0ca579d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/GettingStarted/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ SELF comes with a spack environment file that defines the dependencies that are
git clone https://github.com/fluidnumerics/SELF/ ~/SELF/
```

If you have a preferred compiler you would like for spack to use, you can use `spack config add`, e.g.
**If you have a preferred compiler** you would like for spack to use, you can use `spack config add`, e.g.

```
spack -e ~/SELF/share/spack-env config add packages:all:require:['%[email protected]']
spack -e ~/SELF/share/spack-env config add packages:all:require:["'%[email protected]'"]
```

The example above will force packages to be built with version 12.2.0 of gfortran from the `gcc` compiler set.
The example above will force packages to be built with version 12.2.0 of gfortran from the `gcc` compiler set.

!!! note
If you do not set a preferred compiler, spack will pick one based on the available compilers found using `spack compiler find`

To reduce build time, import existing packages on your system
```
Expand Down

0 comments on commit 0ca579d

Please sign in to comment.