aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2021-04-25 23:30:26 +0200
committerDanielGavin <danielgavin5@hotmail.com>2021-04-25 23:30:26 +0200
commit0cb6ebd8aaf8e20a7003970ec884b2c07ace2e6d (patch)
tree1246167b6ad0cfb3060972fb65c02e5635ecad95 /build.sh
parente96b24da93e22549c6f32cd9d46c28bd0b608b5a (diff)
prepare for the llvm-api for linux
Diffstat (limited to 'build.sh')
-rwxr-xr-x[-rw-r--r--]build.sh20
1 files changed, 16 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index 41e3f73..2616fa8 100644..100755
--- a/build.sh
+++ b/build.sh
@@ -1,7 +1,19 @@
-#!/bin/sh -x
+#!/usr/bin/env bash
-#debug mode is the only version that works on linux right now...
-odin build src/ -show-timings -microarch:native -collection:shared=src -debug -out:ols
+if [[ $1 == "CI" ]]
+then
+ ODIN="Odin/odin"
+else
+ ODIN="odin"
+fi
-#odin build src/ -show-timings -collection:shared=src -out:ols -opt:2
+#BUG in odin test, it makes the executable with the same name as a folder and gets confused.
+#${ODIN} test tests -llvm-api
+#if [ $? -ne 0 ]
+#then
+# echo "Test failed"
+# exit 1
+#fi
+
+${ODIN} build src/ -show-timings -collection:shared=src -out:ols -opt:2 -llvm-api -microarch=native \ No newline at end of file