Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify setting preferred compiler. #90

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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