-
Notifications
You must be signed in to change notification settings - Fork 38
add note about spack help --spec #440
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| spec expression syntax: | ||
|
|
||
| package [constraints] [^dependency [constraints] ...] | ||
|
|
||
| package any package from 'spack list', or | ||
| /hash unique prefix or full hash of | ||
| installed package | ||
|
|
||
| constraints: | ||
| versions: | ||
| @version single version | ||
| @min:max version range (inclusive) | ||
| @min: version <min> or higher | ||
| @:max up to version <max> (inclusive) | ||
| @=version exact version | ||
|
|
||
| compilers: | ||
| %compiler build with <compiler> | ||
| %compiler@version build with specific compiler version | ||
| %compiler@min:max specific version range (see above) | ||
|
|
||
| compiler flags: | ||
| cflags="flags" cppflags, cflags, cxxflags, | ||
| fflags, ldflags, ldlibs | ||
| == propagate flags to package dependencies | ||
|
|
||
| variants: | ||
| +variant enable <variant> | ||
| -variant or ~variant disable <variant> | ||
| variant=value set non-boolean <variant> to <value> | ||
| variant=value1,value2,value3 set multi-value <variant> values | ||
| ++, --, ~~, == propagate variants to package dependencies | ||
|
|
||
| architecture variants: | ||
| platform=platform linux, darwin, freebsd, windows | ||
| os=operating_system specific <operating_system> | ||
| target=target specific <target> processor | ||
| arch=platform-os-target shortcut for all three above | ||
|
|
||
| dependencies: | ||
| ^dependency [constraints] specify constraints on dependencies | ||
| ^/hash build with a specific installed | ||
| dependency | ||
|
|
||
| examples: | ||
| hdf5 any hdf5 configuration | ||
| hdf5 @1.10.1 hdf5 version 1.10.1 | ||
| hdf5 @1.8: hdf5 1.8 or higher | ||
| hdf5 @1.8: %gcc hdf5 1.8 or higher built with gcc | ||
| hdf5 +mpi hdf5 with mpi enabled | ||
| hdf5 ~mpi hdf5 with mpi disabled | ||
| hdf5 ++mpi hdf5 with mpi enabled and propagates | ||
| hdf5 ~~mpi hdf5 with mpi disabled and propagates | ||
| hdf5 +mpi ^mpich hdf5 with mpi, using mpich | ||
| hdf5 +mpi ^openmpi@1.7 hdf5 with mpi, using openmpi 1.7 | ||
| boxlib dim=2 boxlib built for 2 dimensions | ||
| libdwarf %intel ^libelf%gcc | ||
| libdwarf, built with intel compiler, linked to libelf built with gcc | ||
| mvapich2 fabrics=psm,mrail,sock %gcc | ||
| mvapich2, built with gcc compiler, with support for multiple fabrics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.