#!/bin/bash

export GOPATH=$HOME/dev/go
#export TMPDIR=~/build/tmp

nohup ~/util/boost.sh 20 > /dev/null 2>&1 &

# always clean
go clean -i rx
#sync

if [ "$1" == "-trace" ]; then
    shift
    export DUBUG=1
    apitrace trace -o trace go run -v test/main_rx.go
    exit
fi

#CC=clang-3.8 go run -msan -v test/main_rx.go
go run -v test/main_rx.go

