From 0cb6ebd8aaf8e20a7003970ec884b2c07ace2e6d Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Sun, 25 Apr 2021 23:30:26 +0200 Subject: prepare for the llvm-api for linux --- build.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) mode change 100644 => 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 41e3f73..2616fa8 --- 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 -- cgit v1.2.3