Skip to content

Commit

Permalink
Update GHDL version binaries for darwin-x64, fixes #110
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Jun 2, 2024
1 parent 550bea1 commit a184f3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion default/scripts/ghdl-yosys-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cd ghdl-yosys-plugin
sed -i 's,/yosyshq/share,/yosys/yosyshq/share,g' ../yosys/yosyshq/bin/yosys-config
if [ ${ARCH} == 'darwin-x64' ]; then
sed -i '11,13d' Makefile
make GHDL=../ghdl/yosyshq/bin/ghdl YOSYS_CONFIG=../yosys/yosyshq/bin/yosys-config CFLAGS="-I ../yosys/yosyshq/share/yosys/include" LIBGHDL_LIB="${BUILD_DIR}/ghdl${INSTALL_PREFIX}/lib/libghdl-4_0_0_dev.dylib" LIBGHDL_INC="${BUILD_DIR}/ghdl${INSTALL_PREFIX}/include/"
make GHDL=../ghdl/yosyshq/bin/ghdl YOSYS_CONFIG=../yosys/yosyshq/bin/yosys-config CFLAGS="-I ../yosys/yosyshq/share/yosys/include" LIBGHDL_LIB="${BUILD_DIR}/ghdl${INSTALL_PREFIX}/lib/libghdl-5_0_0_dev.dylib" LIBGHDL_INC="${BUILD_DIR}/ghdl${INSTALL_PREFIX}/include/"
else
make GHDL=../ghdl/yosyshq/bin/ghdl YOSYS_CONFIG=../yosys/yosyshq/bin/yosys-config CFLAGS="-I ../yosys/yosyshq/share/yosys/include"
fi
Expand Down
2 changes: 1 addition & 1 deletion default/scripts/ghdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ elif [ ${ARCH} == 'darwin-x64' ]; then
wget https://github.com/ghdl/ghdl/releases/download/nightly/ghdl-macos-11-mcode.tgz
mkdir -p ${OUTPUT_DIR}${INSTALL_PREFIX}
tar xvfz ghdl-macos-11-mcode.tgz -C ${OUTPUT_DIR}${INSTALL_PREFIX}
install_name_tool -id @executable_path/../lib/libghdl-4_0_0_dev.dylib ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libghdl-4_0_0_dev.dylib
install_name_tool -id @executable_path/../lib/libghdl-5_0_0_dev.dylib ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libghdl-5_0_0_dev.dylib
wget https://github.com/mmicko/macos-resources/releases/download/v2/libgnat-2019.dylib
cp libgnat-2019.dylib ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/.
exit 0
Expand Down

0 comments on commit a184f3c

Please sign in to comment.