Skip to content

Commit

Permalink
Move M1 config variables into configure_dev.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime committed May 5, 2022
1 parent da3fa3c commit 8b48dc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ else
export GOTESTCOMMAND=gotestsum --format pkgname --jsonfile testresults.json --
endif

# M1 Mac--homebrew install location in /opt/homebrew
ifeq ($(OS_TYPE), darwin)
ifeq ($(ARCH), arm64)
export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
endif
endif
ifeq ($(UNAME), Linux)
EXTLDFLAGS := -static-libstdc++ -static-libgcc
ifeq ($(ARCH), amd64)
Expand Down
5 changes: 5 additions & 0 deletions scripts/configure_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ done
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"

OS=$("$SCRIPTPATH"/ostype.sh)
ARCH=$("$SCRIPTPATH"/archtype.sh)

function install_or_upgrade {
if ${FORCE} ; then
Expand Down Expand Up @@ -72,6 +73,10 @@ if [ "${OS}" = "linux" ]; then
sudo "$SCRIPTPATH/install_linux_deps.sh"
fi
elif [ "${OS}" = "darwin" ]; then
if [ "${ARCH}" = "arm64" ]; then
export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
fi
if [ "${CIRCLECI}" != "true" ]; then
brew update
brew tap homebrew/cask
Expand Down

0 comments on commit 8b48dc5

Please sign in to comment.