mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Meta: Avoid double-access of LADYBIRD_SOURCE_DIR environment variable
The `ensure_ladybird_source_dir` function returns the source directory. Let's just use it. This silences a pyright warning.
This commit is contained in:
parent
23a95cfb9a
commit
6a1b3f740c
Notes:
github-actions[bot]
2025-05-21 22:56:55 +00:00
Author: https://github.com/trflynn89
Commit: 6a1b3f740c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4837
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 2 deletions
|
@ -288,9 +288,8 @@ def configure_build_env(preset: str, cc: str, cxx: str) -> tuple[Path, Path, lis
|
|||
f"-DCMAKE_CXX_COMPILER={cxx}",
|
||||
]
|
||||
)
|
||||
ensure_ladybird_source_dir()
|
||||
lb_source_dir = Path(os.environ.get("LADYBIRD_SOURCE_DIR"))
|
||||
|
||||
lb_source_dir = ensure_ladybird_source_dir()
|
||||
build_root_dir = lb_source_dir / "Build"
|
||||
|
||||
known_presets = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue