rapidsai / rapids-cmake

https://docs.rapids.ai/api/rapids-cmake/stable/
Apache License 2.0
29 stars 46 forks source link

rapids_cmake_support_conda_env adds `-O0` to debug compile lines #635

Closed robertmaynard closed 3 months ago

robertmaynard commented 3 months ago

Description

When building in a conda env the default CXXFLAGS, CFLAGS, etc will inject -O2 on the compile line making Debug bugs significantly less useful. rapids_cmake_support_conda_env now injects a -O0 to override the -O2 set by conda to make debug builds usable.

Fixes #634

Checklist

robertmaynard commented 3 months ago

/merge