Skip to content

Commit

Permalink
cuda: Create obj dir in generator script.
Browse files Browse the repository at this point in the history
This adds creation of the obj/ dir, which is needed to generate the
version of the Blake3 kernel used in CUDA builds.

The Windows version no longer needs the obj/ dir, therefore that is not
necessary on that platform.
  • Loading branch information
matheusd authored and davecgh committed Sep 18, 2023
1 parent f6eaef3 commit 9f1c3f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cuda_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ func checkRequirementsWindows() error {
// checkRequirementsDefault checks the requirements for any other OS/architecture
// combinations.
func checkRequirementsDefault() error {
return nil
// Create the obj/ dir.
return os.MkdirAll("obj", 0o755)
}

// buildBlake3Windows builds the blake3.dll library with a compiled version of
Expand Down

0 comments on commit 9f1c3f0

Please sign in to comment.