Skip to content

Commit e399057

Browse files
committed
fix not compiling on macOS
1 parent 640a7f6 commit e399057

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

init.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def install_tskibd():
3939
cd tskibd
4040
git checkout 8a3aba38067143bcc7934fb8d8a56124e7a88c92
4141
git submodule update --init --recursive
42+
# avoid error when compiled on macos
43+
mv tskit/c/VERSION tskit/c/VERSION.txt
4244
meson build
4345
ninja -C build tskibd
4446
cd ../
@@ -67,7 +69,8 @@ def install_hmmibd():
6769
git checkout a2f796ef8122d7f6b983ae9ac4c6fba35afcd3aa
6870
sed -i -e 's/const double rec_rate = 7.4e-7/const double rec_rate = 6.67e-7/' \
6971
hmmIBD.c
70-
x86_64-conda_cos6-linux-gnu-gcc -o hmmIBD -O3 -lm -Wall hmmIBD.c
72+
# avoid error when compiled on macos
73+
$CC -o hmmIBD -O3 -lm -Wall hmmIBD.c
7174
cd ..
7275
cp hmmIBD/hmmIBD bin/hmmIBD
7376
rm -rf hmmIBD

0 commit comments

Comments
 (0)