aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/termux.sh
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-01-05 20:46:15 +0100
committertgingold <tgingold@users.noreply.github.com>2021-01-06 07:30:46 +0100
commit99853361819bff87e7cf8103c5205721ec195c32 (patch)
tree29a6dda1199534497f5a09ea1268aa3a619c41b8 /scripts/termux.sh
parent301f442a6e66a83b47ed7d40e5b61389b9c33446 (diff)
downloadghdl-99853361819bff87e7cf8103c5205721ec195c32.tar.gz
ghdl-99853361819bff87e7cf8103c5205721ec195c32.tar.bz2
ghdl-99853361819bff87e7cf8103c5205721ec195c32.zip
mv dist/* scripts/
Diffstat (limited to 'scripts/termux.sh')
-rwxr-xr-xscripts/termux.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/termux.sh b/scripts/termux.sh
new file mode 100755
index 000000000..f2b115850
--- /dev/null
+++ b/scripts/termux.sh
@@ -0,0 +1,15 @@
+# Build and install GHDL on termux (https://termux.com/)
+
+cd $(dirname "$0")/..
+
+curl -fsSL https://its-pointless.github.io/setup-pointless-repo.sh | bash -
+pkg install gnat-10 llvm clang make
+setupgcc-10
+setup-patchforgcc
+
+mkdir -p build-termux
+cd build-termux
+CXX=clang++
+../configure --default-pic --enable-synth --with-llvm-config=llvm-config --prefix="$PREFIX"
+make
+make install