Debian Codegraph @

mk/runner

raw symbols SCIP
1 #!/bin/bash
2 set -eux -o pipefail
3 IFS=$'\n\t'
4
5 for arg in $*; do
6 # There can be some arguments prefixed in front of the executable, e.g.
7 # when qemu-user is used. There can be arguments after the executable,
8 # e.g. `cargo test` arguments like `TESTNAME`.
9 if [[ $arg = */deps/* ]]; then
10 executable=$arg
11 break
12 fi
13 done
14
15 export LLVM_PROFILE_FILE=$(dirname "$RING_BUILD_EXECUTABLE_LIST")/$(basename "$executable").profraw
16
17 if [ -n "$RING_BUILD_EXECUTABLE_LIST" ]; then
18 echo "$executable" >> "$RING_BUILD_EXECUTABLE_LIST"
19 fi
20
21 $*