Skip to content
Snippets Groups Projects
setup-platin.sh 372 B
#!/bin/bash

function assert_complete {
    "$@"
    local status=$?
    if [ $status -ne 0 ]; then
        echo "error executing: $1" >&2
        exit 1
    fi
    return $status
}

cd "$(dirname "$0")"

ROOT=$(pwd)
INSTALL_DIR_PLATIN=$ROOT/local/

# install platin
assert_complete $ROOT/llvm/tools/platin/install.sh -i $INSTALL_DIR_PLATIN -b $ROOT/llvm/build

cd $ROOT