Skip to content

Commit

Permalink
Clean output directories before generating bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
raulsntos committed Sep 2, 2024
1 parent 386b140 commit f497a90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Godot.BindingsGenerator/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ private async Task<int> HandleCommand(ParseResult parseResult, CancellationToken

var testOutputPath = parseResult.GetValue(_testOutputPathOption);

// Clean output directories first.
outputPath.Delete(recursive: true);
testOutputPath?.Delete(recursive: true);

var logger = ConsoleLogger.Instance;

ClangGenerator.Generate(extensionInterfacePath.FullName, outputPath.FullName, testOutputPath?.FullName, logger);
Expand Down

0 comments on commit f497a90

Please sign in to comment.