diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2021-04-25 23:30:26 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2021-04-25 23:30:26 +0200 |
| commit | 0cb6ebd8aaf8e20a7003970ec884b2c07ace2e6d (patch) | |
| tree | 1246167b6ad0cfb3060972fb65c02e5635ecad95 /build.sh | |
| parent | e96b24da93e22549c6f32cd9d46c28bd0b608b5a (diff) | |
prepare for the llvm-api for linux
Diffstat (limited to 'build.sh')
| -rwxr-xr-x[-rw-r--r--] | build.sh | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -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 |