Skip to content

Commit

Permalink
create bin/bash/build-racketchez-m1 based on cisco/ChezScheme#544
Browse files Browse the repository at this point in the history
  • Loading branch information
c4augustus committed Nov 26, 2022
1 parent 76d22d7 commit 73c732a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions bin/bash/build-racketchez-m1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
# build and install Racket fork of ChezScheme on macOS M1
# based on https://github.com/cisco/ChezScheme/issues/544
if [ ! -f /opt/local/include/gmp.h ]; then
sudo port install gmp
fi
DIR_RACKETCHEZ=racketchez
if [ ! -d $DIR_RACKETCHEZ ]; then
mkdir -p $DIR_RACKETCHEZ
git clone https://github.com/racket/ChezScheme $DIR_RACKETCHEZ
fi
cd $DIR_RACKETCHEZ
git submodule update --init --recursive
./configure --pb
make tarm64osx.bootquick
PATH_RACKETCHEZ=~/z/u/run/$DIR_RACKETCHEZ
./configure --threads --installschemename=chez --installprefix=$PATH_RACKETCHEZ
make -j10
make install
export SCHEMEHEAPDIRS=$PATH_RACKETCHEZ/lib/csv%v/%m
echo '(+ 1 1)' | $PATH_RACKETCHEZ/bin/chez -q # should print 2

0 comments on commit 73c732a

Please sign in to comment.