make twn run compile it first
This commit is contained in:
parent
b0e6dd78b2
commit
99522ae466
@ -3,17 +3,16 @@
|
||||
|
||||
set +e
|
||||
|
||||
exe="$(basename $PWD)"
|
||||
toolpath="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
export TWNROOT=$(realpath "$toolpath"/../)
|
||||
export TWNBUILDDIR=$(realpath "$toolpath"/../.build)
|
||||
|
||||
exe="$(basename $PWD)"
|
||||
|
||||
case "$1" in
|
||||
build ) "$toolpath"/build.sh "${@:2}"
|
||||
;;
|
||||
|
||||
run ) ./$exe "${@:2}"
|
||||
run ) $0 build && ./$exe "${@:2}"
|
||||
;;
|
||||
|
||||
gdb ) unset DEBUGINFOD_URLS
|
||||
|
Loading…
Reference in New Issue
Block a user