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

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

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

jmcarcell
Copy link
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.

Copy link

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
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.

var/spack/repos/builtin/packages/cmake/package.py Outdated Show resolved Hide resolved
@@ -54,12 +54,6 @@ def url_for_version(self, version):
with when("build_system=cmake"):
variant("chrpath", default=False, description="Use chrpath for deployment")
variant("strip", default=False, description="Use binutils strip for deployment")
variant(
"build_type",
default="RelWithDebInfo",
Copy link
Member

Choose a reason for hiding this comment

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

So does libtree

var/spack/repos/builtin/packages/mbedtls/package.py Outdated Show resolved Hide resolved
@alalazo alalazo self-assigned this Nov 20, 2023
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