From 2da8a1d1e311fe2de8b54b98c012a9cc608c0976 Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:04:22 -0800 Subject: [PATCH] Docs/bugfix: correct return for Adding flags to configure (#48434) --- .../docs/build_systems/autotoolspackage.rst | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/lib/spack/docs/build_systems/autotoolspackage.rst b/lib/spack/docs/build_systems/autotoolspackage.rst index 106192c59ad..d5569e7c73f 100644 --- a/lib/spack/docs/build_systems/autotoolspackage.rst +++ b/lib/spack/docs/build_systems/autotoolspackage.rst @@ -272,9 +272,9 @@ often lists dependencies and the flags needed to locate them. The "environment variables" section lists environment variables that the build system uses to pass flags to the compiler and linker. -^^^^^^^^^^^^^^^^^^^^^^^^^^ -Addings flags to configure -^^^^^^^^^^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^^^ +Adding flags to configure +^^^^^^^^^^^^^^^^^^^^^^^^^ For most of the flags you encounter, you will want a variant to optionally enable/disable them. You can then optionally pass these @@ -285,7 +285,7 @@ function like so: def configure_args(self): args = [] - + ... if self.spec.satisfies("+mpi"): args.append("--enable-mpi") else: @@ -299,7 +299,10 @@ Alternatively, you can use the :ref:`enable_or_disable