Skip to content

Commit

Permalink
Add check for clang on macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
seanthegeek committed Nov 30, 2023
1 parent 4949a9e commit 3505594
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ case "$OSTYPE" in
echo 'Error: Homebrew is not installed. Please install it.' >&2
exit 1
fi
if ! [ -x "$(command -v clang)" ]; then
echo 'Error: clang not found. Please run xcode-select --install.' >&2
exit 1
fi
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
;;
Expand Down
4 changes: 4 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ case "$OSTYPE" in
echo 'Error: Homebrew is not installed. Please install it.' >&2
exit 1
fi
if ! [ -x "$(command -v clang)" ]; then
echo 'Error: clang not found. Please run xcode-select --install.' >&2
exit 1
fi
brew install pkg-config openssl@3 poppler python
;;
*linux*)
Expand Down

0 comments on commit 3505594

Please sign in to comment.