Skip to content

Remove the default build_type for packages with the default CMake builds#41163

Merged
alalazo merged 1 commit intospack:developfrom
jmcarcell:cmake
Nov 27, 2023
Merged

Remove the default build_type for packages with the default CMake builds#41163
alalazo merged 1 commit intospack:developfrom
jmcarcell:cmake

Conversation

@jmcarcell
Copy link
Copy Markdown
Contributor

@jmcarcell jmcarcell commented Nov 19, 2023

Let build_type be configured by the user or the default (currently Release) without having different default settings in each package.

I have only changed the packages with the four default cases, but there are several candidate packages that only have a subset of the four that probably also don't need to have specified the build_type. For packages with different options, removing this may lead to problems if a certain type of build can't be done, as that would fail now at concretization time and without this block it would fail at build time.

@spackbot-app
Copy link
Copy Markdown

spackbot-app Bot commented Nov 19, 2023

@BenjaminTJohnson can you review this PR?

This PR modifies the following package(s), for which you are listed as a maintainer:

  • cmake
  • crtm
  • draco
  • libtree
  • mbedtls

Copy link
Copy Markdown
Member

@alalazo alalazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 packages out of 5 are not CMakePackages. Another 2 have different default values, and this change needs to be approved by maintainers. draco seems indeed a redundant directive.

Comment thread var/spack/repos/builtin/packages/cmake/package.py
Comment thread var/spack/repos/builtin/packages/crtm/package.py
variant("strip", default=False, description="Use binutils strip for deployment")
variant(
"build_type",
default="RelWithDebInfo",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So does libtree

Comment thread var/spack/repos/builtin/packages/mbedtls/package.py
@alalazo alalazo self-assigned this Nov 20, 2023
Comment thread var/spack/repos/builtin/packages/draco/package.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants