mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
fix macos build instructions in readme and fix warning
This commit is contained in:
parent
b76398c993
commit
e9f066acae
@ -177,7 +177,7 @@ brew install cmake llvm@8
|
|||||||
brew outdated llvm@8 || brew upgrade llvm@8
|
brew outdated llvm@8 || brew upgrade llvm@8
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_PREFIX_PATH=/usr/local/opt/llvm@8/
|
cmake .. -DCMAKE_PREFIX_PATH=/usr/local/Cellar/llvm/8.0.0
|
||||||
make install
|
make install
|
||||||
bin/zig build --build-file ../build.zig test
|
bin/zig build --build-file ../build.zig test
|
||||||
```
|
```
|
||||||
|
|||||||
@ -143,7 +143,7 @@ static int __shgetc(struct MuslFILE *f)
|
|||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
off_t cnt = shcnt(f);
|
off_t cnt = shcnt(f);
|
||||||
if (f->shlim && cnt >= f->shlim || (c=__uflow(f)) < 0) {
|
if ((f->shlim && cnt >= f->shlim) || (c=__uflow(f)) < 0) {
|
||||||
f->shcnt = f->buf - f->rpos + cnt;
|
f->shcnt = f->buf - f->rpos + cnt;
|
||||||
f->shend = f->rpos;
|
f->shend = f->rpos;
|
||||||
f->shlim = -1;
|
f->shlim = -1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user