wrappers: Don't explicitly pass -target in clang-scan-deps-wrapper.sh
clang-scan-deps can pick it up automatically from the first argument now. For the windows wrapper, keep passing -target, to allow running with a potentially foreign clang-scan-deps.exe.
This commit is contained in:
1 parent
570fdcd251
commit
c34dc64028
2 files changed
+9
-8
No files matched your search
@@ -45,8 +45,6 @@ while [ $# -gt 0 ]; do
|
||||
done
|
||||
|
||||
if [ -n "$CMD_EXE" ]; then
|
||||
# If CMD_EXE is a <triple>-<exe> style command, pick up the
|
||||
# target triple from there.
|
||||
CMD_BASENAME="$(basename "$CMD_EXE")"
|
||||
CMD_BASENAME="${CMD_BASENAME%.*}"
|
||||
CMD_TARGET="${CMD_BASENAME%-*}"
|
||||
@@ -54,14 +52,14 @@ if [ -n "$CMD_EXE" ]; then
|
||||
if [ "$CMD_TARGET" != "$CMD_BASENAME" ]; then
|
||||
case $CMD_EXE_SUFFIX in
|
||||
clang|clang++|gcc|g++|c++|as|cc|c99|c11)
|
||||
TARGET="$CMD_TARGET"
|
||||
IS_CLANG=1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$TARGET" ]; then
|
||||
"$EXE" "${FLAGS[@]}" -target $TARGET -stdlib=libc++ "$@"
|
||||
if [ -n "$IS_CLANG" ]; then
|
||||
"$EXE" "${FLAGS[@]}" -stdlib=libc++ "$@"
|
||||
else
|
||||
"$EXE" "${FLAGS[@]}" "$@"
|
||||
fi
|
||||
Reference in new issue
Block a user