Skip to content

Commit

Permalink
options: rename _set_dependents -> _set_buildtype_dependents
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Mar 5, 2025
1 parent 985d808 commit c583a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesonbuild/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ def sanitize_dir_option_value(self, prefix: str, option: OptionKey, value: T.Any
# .as_posix() keeps the posix-like file separators Meson uses.
return value.as_posix()

def _set_dependents(self, key: OptionKey, value: str) -> None:
def _set_buildtype_dependents(self, key: OptionKey, value: str) -> None:
opt, debug = self.DEFAULT_DEPENDENTS[value]
dkey = key.evolve(name='debug')
optkey = key.evolve(name='optimization')
Expand Down Expand Up @@ -997,7 +997,7 @@ def replace(v: T.Any) -> T.Any:

if changed and key.name == 'buildtype':
assert isinstance(new_value, str), 'for mypy'
self._set_dependents(key, new_value)
self._set_buildtype_dependents(key, new_value)

return changed

Expand Down

0 comments on commit c583a71

Please sign in to comment.