Skip to content

Commit

Permalink
updated macos installer for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerbino committed Feb 2, 2022
1 parent e7ce786 commit 308bd61
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ci_scripts/install_class_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ rm -rf class_public
git clone --depth=1000 https://github.com/lesgourg/class_public.git
cd class_public

sed -i.bak -e 's/^CC/#CC/g' Makefile
sed -i.bak -e 's/^OPTFLAG =/OPTFLAG = ${CFLAGS} ${LDFLAGS}/g' Makefile
sed -i.bak -e 's/^#CCFLAG +=/CCFLAG +=/g' Makefile
sed -i.bak -e 's/^#CCFLAG =/CCFLAG =/g' Makefile
# if you are running on macos 11.6 and higher, uncomment the following line
sed -i.bak -e 's/gcc/gcc-9/g' Makefile

# if you are running on macos 10.15 and lower, uncomment the following 4 lines
#sed -i.bak -e 's/^CC/#CC/g' Makefile
#sed -i.bak -e 's/^OPTFLAG =/OPTFLAG = ${CFLAGS} ${LDFLAGS}/g' Makefile
#sed -i.bak -e 's/^#CCFLAG +=/CCFLAG +=/g' Makefile
#sed -i.bak -e 's/^#CCFLAG =/CCFLAG =/g' Makefile

make -j4

Expand Down

0 comments on commit 308bd61

Please sign in to comment.