-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to fix some issues with slowness in the MacOS build.
- Loading branch information
Showing
3 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
#! /bin/bash | ||
|
||
# Script for building P4C on MacOS. | ||
|
||
set -e # Exit on error. | ||
set -x # Make command execution verbose | ||
|
||
# Install some custom requirements on OS X using brew | ||
BREW=/usr/local/bin/brew | ||
if [[ ! -x $BREW ]]; then | ||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
fi | ||
|
||
BOOST_LIB="[email protected]" | ||
|
||
$BREW update | ||
$BREW install autoconf automake bdw-gc bison ${BOOST_LIB} ccache cmake \ | ||
libtool openssl pkg-config python coreutils grep | ||
$BREW install autoconf automake bdw-gc ccache cmake \ | ||
libtool openssl pkg-config python coreutils | ||
|
||
# We need to link boost. | ||
$BREW install ${BOOST_LIB} | ||
$BREW link ${BOOST_LIB} | ||
# Prefer Homebrew's bison and grep over the macOS-provided version | ||
$BREW link --force bison grep ${BOOST_LIB} | ||
$BREW install bison | ||
echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile | ||
$BREW install grep | ||
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bash_profile | ||
export PATH="/usr/local/opt/bison/bin:$PATH" | ||
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH" | ||
source ~/.bash_profile | ||
|
||
|
||
# install pip and required pip packages | ||
# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | ||
|