Skip to content

Commit

Permalink
Check directory and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanCheeseBurrito committed Aug 27, 2023
1 parent ac6728c commit b5d6c5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ dotnet restore
```
### Generate bindings
Generate the binding code. Bindings are generated with [Bindgen.NET](https://github.com/BeanCheeseBurrito/Bindgen.NET).
> **Note**
> The binding generator needs access to system headers on MacOS. Ensure that XCode is installed.
```console
dotnet run --project src/Flecs.NET.Bindgen
```
Expand Down
2 changes: 1 addition & 1 deletion src/Flecs.NET.Bindgen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ string GetMacOsHeaders()

string path = process.StandardOutput.ReadToEnd().Trim();

if (!Path.Exists(path))
if (!Directory.Exists(path))
throw new DirectoryNotFoundException("Couldn't find system headers. Install XCode.");

return path + "/usr/include";
Expand Down

0 comments on commit b5d6c5f

Please sign in to comment.