Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(makefile): macOS support #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sambacha
Copy link
Contributor

This correctly installs the dylib for macOS ARM and Intel makes.

Previously we encountered the error:

install -d '/usr/local/include'/tree_sitter '/usr/local/lib/pkgconfig' '/usr/local/lib'
install: mkdir /usr/local/include/tree_sitter: Permission denied
make: *** [install] Error 71

We now correctly get:

$ make install
install -d '/opt/homebrew/include'/tree_sitter '/opt/homebrew/lib/pkgconfig' '/opt/homebrew/lib'
install -m644 bindings/c/tree-sitter-solidity.h '/opt/homebrew/include'/tree_sitter/tree-sitter-solidity.h
install -m644 tree-sitter-solidity.pc '/opt/homebrew/lib/pkgconfig'/tree-sitter-solidity.pc
install -m644 libtree-sitter-solidity.a '/opt/homebrew/lib'/libtree-sitter-solidity.a
install -m755 libtree-sitter-solidity.dylib '/opt/homebrew/lib'/libtree-sitter-solidity.1.2.dylib
ln -sf libtree-sitter-solidity.1.2.dylib '/opt/homebrew/lib'/libtree-sitter-solidity.1.dylib
ln -sf libtree-sitter-solidity.1.dylib '/opt/homebrew/lib'/libtree-sitter-solidity.dylib

This correctly installs the dylib for macOS ARM and Intel makes.

Previously we encountered the error:
```bash
install -d '/usr/local/include'/tree_sitter '/usr/local/lib/pkgconfig' '/usr/local/lib'
install: mkdir /usr/local/include/tree_sitter: Permission denied
make: *** [install] Error 71
```

We now correctly get:
```bash
$ make install
install -d '/opt/homebrew/include'/tree_sitter '/opt/homebrew/lib/pkgconfig' '/opt/homebrew/lib'
install -m644 bindings/c/tree-sitter-solidity.h '/opt/homebrew/include'/tree_sitter/tree-sitter-solidity.h
install -m644 tree-sitter-solidity.pc '/opt/homebrew/lib/pkgconfig'/tree-sitter-solidity.pc
install -m644 libtree-sitter-solidity.a '/opt/homebrew/lib'/libtree-sitter-solidity.a
install -m755 libtree-sitter-solidity.dylib '/opt/homebrew/lib'/libtree-sitter-solidity.1.2.dylib
ln -sf libtree-sitter-solidity.1.2.dylib '/opt/homebrew/lib'/libtree-sitter-solidity.1.dylib
ln -sf libtree-sitter-solidity.1.dylib '/opt/homebrew/lib'/libtree-sitter-solidity.dylib
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant