Skip to content

Commit

Permalink
macosaaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamesam committed Apr 10, 2024
1 parent 5bc1c45 commit 6bccf22
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build-aux/ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ ARTIFACTS_DIR_NAME="output"
[[ -z ${MAKEFLAGS} ]] && export MAKEFLAGS="-j${CPU_COUNT} -l${CPU_COUNT}"
[[ -z ${CFLAGS} ]] && export CFLAGS="-O2"

# Silly hacks to get brew-installed GCC and Clang on macOS
if [[ -d /usr/local/bin ]] ; then
export PATH="/usr/local/bin:${PATH}"
ln -s /usr/local/bin/gcc-13 /usr/local/bin/gcc
fi
if [[ -d /usr/local/opt/llvm ]] ; then
export CPPFLAGS="-I/usr/local/opt/llvm/include ${CPPFLAGS}"
export LDFLAGS="-L/usr/local/opt/llvm/lib ${LDFLAGS}"
export PATH="/usr/local/opt/llvm/bin:${PATH}"
fi

###################
# Parse arguments #
###################
Expand Down

0 comments on commit 6bccf22

Please sign in to comment.