mirror of
https://github.com/ziglang/zig.git
synced 2024-11-24 13:20:14 +00:00
Include note for macOS users using nix
parent
3903d34081
commit
868df1ad87
@ -64,4 +64,15 @@ Alternatively, you can use this sample `flake.nix`:
|
||||
}
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
## Notes for macOS users
|
||||
|
||||
If using macOS, you may need to include the following to properly use nix's clang.
|
||||
|
||||
```nix
|
||||
shellHook = with pkgs.llvmPackages_13; ''
|
||||
export CPATH="${libcxx.dev}" # Use libcxx's stdlib
|
||||
export LDFLAGS="-stdlib=libc++ -lc++abi" # Link against the stdlib
|
||||
'';
|
||||
```
|
Loading…
Reference in New Issue
Block a user