Adding a debug variant to the spack package

Dear preCICE developers and maintainers,

for debugging purposes it would be great of the spack package of preCICE could also offer a debug variant inside the package.py. Did you consider this before?

Best
hoehnp

Hi @hoehnp

Spack internally defines the variant build_type for every package that uses CMake.
Meaning you can use spack install precice build_type=Debug to install a debug build.

If you are only looking for debug log or assertions, then the variants checked and debug_log avoid most of the performance hit. spack install precice +checked +debug_log

Use spack info precice to see all possibile configurations.

Best regards
Frédéric

1 Like

Hi @fsimonis,

thanks for letting me know. Despite using spack already for quite a while, I didnt know this implicit variant for CMake yet.

Best Regards,
Patrick

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.