diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4cf46e31..488e73c3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -43,8 +43,8 @@ jobs: run: | brew update brew install llvm@${{matrix.llvm}} bdw-gc openssl libffi + brew link --force libffi echo "$(brew --prefix llvm@${{matrix.llvm}})/bin" >> $GITHUB_PATH - echo "PKG_CONFIG_PATH=/opt/homebrew/opt/libffi/lib/pkgconfig" >> $GITHUB_ENV # Install optional deps for demos. # diff --git a/README.md b/README.md index 3f6203be..e5700d48 100644 --- a/README.md +++ b/README.md @@ -358,9 +358,11 @@ Follow these steps to generate the `llgo` command (its usage is the same as the ```sh brew update -brew install llvm@18 bdw-gc openssl cjson +brew install llvm@18 bdw-gc openssl cjson libffi brew install python@3.12 # optional +brew link --force libffi go install -v github.com/goplus/llgo/cmd/llgo@latest + ``` ### on Linux (Debian/Ubuntu) diff --git a/doc/_readme/scripts/install_macos.sh b/doc/_readme/scripts/install_macos.sh index 07c83514..20cd3a47 100644 --- a/doc/_readme/scripts/install_macos.sh +++ b/doc/_readme/scripts/install_macos.sh @@ -1,5 +1,6 @@ # shellcheck disable=all brew update -brew install llvm@18 bdw-gc openssl cjson +brew install llvm@18 bdw-gc openssl cjson libffi brew install python@3.12 # optional -go install -v github.com/goplus/llgo/cmd/llgo@latest \ No newline at end of file +brew link --force libffi +go install -v github.com/goplus/llgo/cmd/llgo@latest