From a4b8753456706e2727daa45b32d120ce825099be Mon Sep 17 00:00:00 2001 From: Richarda Butler <39577672+RikkiButler20@users.noreply.github.com> Date: Mon, 23 Jan 2023 16:42:08 -0800 Subject: Update: spack help --spec (#35115) * Update variant & compiler propagation * Add the info for non boolean variants * Add example for multi variants --- lib/spack/spack/cmd/help.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') diff --git a/lib/spack/spack/cmd/help.py b/lib/spack/spack/cmd/help.py index 47415681ec..5db43654a8 100644 --- a/lib/spack/spack/cmd/help.py +++ b/lib/spack/spack/cmd/help.py @@ -39,12 +39,19 @@ spec expression syntax: compiler flags: @g{cflags="flags"} cppflags, cflags, cxxflags, fflags, ldflags, ldlibs + @g{cflags=="flags"} propagate flags to package dependencies + cppflags, cflags, cxxflags, fflags, + ldflags, ldlibs variants: @B{+variant} enable + @B{++variant} propagate enable @r{-variant} or @r{~variant} disable + @r{--variant} or @r{~~variant} propagate disable @B{variant=value} set non-boolean to + @B{variant==value} propagate non-boolean to @B{variant=value1,value2,value3} set multi-value values + @B{variant==value1,value2,value3} propagate multi-value values architecture variants: @m{platform=platform} linux, darwin, cray, etc. @@ -68,6 +75,8 @@ spec expression syntax: hdf5 @c{@1.8:} @g{%gcc} hdf5 1.8 or higher built with gcc hdf5 @B{+mpi} hdf5 with mpi enabled hdf5 @r{~mpi} hdf5 with mpi disabled + hdf5 @B{++mpi} hdf5 with mpi enabled and propagates + hdf5 @r{~~mpi} hdf5 with mpi disabled and propagates hdf5 @B{+mpi} ^mpich hdf5 with mpi, using mpich hdf5 @B{+mpi} ^openmpi@c{@1.7} hdf5 with mpi, using openmpi 1.7 boxlib @B{dim=2} boxlib built for 2 dimensions -- cgit v1.2.3-60-g2f50