-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create bin/bash/build-racketchez-m1 based on cisco/ChezScheme#544
- Loading branch information
1 parent
76d22d7
commit 73c732a
Showing
1 changed file
with
21 additions
and
0 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
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 |