aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/termux.sh
diff options
context:
space:
mode:
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