wrappers: Unify handling of CMD_EXE in clang-scan-deps-wrapper.sh
If we never set $TARGET, we'd previously miss including $CMD_EXE in the nested command. (This doesn't happen in actual uses of the wrapper though, but is included for completeness.) This matches how the corresponding variable is handled in the C version of the wrapper.
This commit is contained in:
1 parent
d9d46de5f3
commit
e9e2ef7d53
1 file changed
+2
-1
@@ -32,6 +32,7 @@ FLAGS=()
|
||||
while [ $# -gt 0 ]; do
|
||||
if [ -n "$got_flags" ]; then
|
||||
CMD_EXE="$1"
|
||||
FLAGS+=("$1")
|
||||
shift
|
||||
break
|
||||
elif [ "$1" = "--" ]; then
|
||||
@@ -60,7 +61,7 @@ if [ -n "$CMD_EXE" ]; then
|
||||
fi
|
||||
|
||||
if [ -n "$TARGET" ]; then
|
||||
"$EXE" "${FLAGS[@]}" "$CMD_EXE" -target $TARGET -stdlib=libc++ "$@"
|
||||
"$EXE" "${FLAGS[@]}" -target $TARGET -stdlib=libc++ "$@"
|
||||
else
|
||||
"$EXE" "${FLAGS[@]}" "$@"
|
||||
fi
|
||||
Reference in new issue
Block a user