You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
616 B
20 lines
616 B
10 years ago
|
#!/bin/bash
|
||
|
|
||
|
SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
|
||
|
if [ "${0%++}" != "$0" ]; then XX="++"; else XX=""; fi
|
||
|
|
||
|
export FCP_CLANG_COMPILER="${SCRIPT_PATH%/}/../clang/clang_wrapper$XX";
|
||
|
export FCP_RESULTS_DIR="${INFER_RESULTS_DIR}";
|
||
|
export FCP_USE_STD_CLANG_CMD="1";
|
||
|
|
||
|
if [ -z $INFER_RESULTS_DIR ]; then
|
||
|
# this redirects to the compiler without adding any FCP flag
|
||
|
# this is because xcode requires message category info from the compiler
|
||
|
# and invokes it without any env var set.
|
||
|
"$FCP_CLANG_COMPILER" "$@"
|
||
|
exit $?
|
||
|
fi
|
||
|
|
||
|
"${SCRIPT_PATH%/}/../clang/clang_general_wrapper$XX" "$@"
|