Skip to content

Commit

Permalink
Allow build_dir to be automatically created
Browse files Browse the repository at this point in the history
  • Loading branch information
danyeaw committed Jul 1, 2023
1 parent ceb794e commit da9e5b5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gvsbuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,8 @@ def build(
),
build_dir: Path = typer.Option(
Path(r"C:\gtk-build"),
help="The directory to build in",
help="The full or relative path of the directory to build in",
rich_help_panel="Directory Options",
exists=True,
dir_okay=True,
writable=True,
resolve_path=True,
),
msys_dir: Path = typer.Option(
None,
Expand Down Expand Up @@ -328,6 +324,8 @@ def build(
opts = Options()
opts.verbose = verbose
opts.debug = debug
if build_dir:
build_dir = Path(build_dir).resolve()
opts.build_dir = str(build_dir)
log.configure(str(build_dir / "logs"), opts)
opts.platform = platform.value
Expand Down

0 comments on commit da9e5b5

Please sign in to comment.