You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a bit of experimentation, I got C2FFI to build on MacOS 11 ("Big Sur").
Feel free to add this to your README or anywhere else you see fit in the documentation.
#!/bin/shset -eux
cd c2ffi
git switch llvm-11.0.0
brew install 'llvm@11'|| brew upgrade 'llvm@11'
mkdir -p ./build
cd ./build
# This is needed to find -lSystem on Big Surexport LDFLAGS="-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"# Set the installation prefix to ~/.local, but feel free to change this.
PREFIX=${PREFIX:-${HOME}/.local}# Set Make options, e.g. -j4
MAKE_OPTS="${MAKE_OPTS:-}"
cmake \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DCMAKE_PREFIX_PATH="/usr/local/opt/llvm@11" \
-DCMAKE_CXX_COMPILER="/usr/local/opt/llvm@11/bin/clang++" \
-DCMAKE_C_COMPILER="/usr/local/opt/llvm@11/bin/clang" \
..
make "${MAKE_OPTS}"
mkdir -p "${PREFIX}/bin"
install -v -m 0755 bin/c2ffi "${PREFIX}/bin/c2ffi"
Note that I did not need to set LIBRARY_PATH as suggested in #59 (comment).
The text was updated successfully, but these errors were encountered:
After a bit of experimentation, I got C2FFI to build on MacOS 11 ("Big Sur").
Feel free to add this to your README or anywhere else you see fit in the documentation.
Note that I did not need to set
LIBRARY_PATH
as suggested in #59 (comment).The text was updated successfully, but these errors were encountered: