Skip to content

Commit

Permalink
Adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Nov 8, 2024
1 parent c9ba536 commit 69660c6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cpp/include/kvikio/defaults.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,7 @@ class defaults {
{
// Determine the default value of `compat_mode`
{
if (std::getenv("KVIKIO_COMPAT_MODE") != nullptr) {
// Setting `KVIKIO_COMPAT_MODE` take precedence
_compat_mode = detail::getenv_or("KVIKIO_COMPAT_MODE", CompatMode::ALLOW);
}

_compat_mode = detail::getenv_or("KVIKIO_COMPAT_MODE", CompatMode::ALLOW);
if (_compat_mode == CompatMode::ALLOW) {
// Infer based on runtime environment
readjust_compat_mode();
Expand Down

0 comments on commit 69660c6

Please sign in to comment.