Skip to content

Commit

Permalink
readme: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Aug 30, 2024
1 parent 53c2359 commit e3fe649
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Make directory and init

```bash
$ zig init
## add zon file boost-libraries-zig
## add in 'build.zig.zon' boost-libraries-zig package
$ zig fetch --save=boost git+https://github.com/allyourcodebase/boost-libraries-zig
```
Add in **build.zig**
Expand All @@ -32,7 +32,9 @@ pub fn build(b: *std.Build) !void {
for(boost_artifact.root_module.include_dirs.items) |include_dir| {
try exe.root_module.include_dirs.append(b.allocator, include_dir);
}
exe.linklibrary(boost_artifact);
// your build
[exe|lib].linkLibrary(boost_artifact);
}
```

Expand Down
2 changes: 2 additions & 0 deletions update_zon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ GIT_URLS=(
"git+https://github.com/boostorg/predef"
"git+https://github.com/boostorg/preprocessor"
"git+https://github.com/boostorg/align"

## Add more URLs here
)

# Loop through each URL
Expand Down

0 comments on commit e3fe649

Please sign in to comment.