Stop manually setting the sysroot

Since clang SVN r330244, the one next to clang is preferred, even
if a similar mingw gcc exists in the path.
This commit is contained in:
Martin Storsjö committed 2018-04-19 00:52:35 +03:00
1 parent 6b5651a4a3
commit 61eaf3a0de
1 file changed
+1 -2
+1 -2
View File
@@ -13,7 +13,6 @@ g++)
;;
esac
ARCH=$(echo $TARGET | sed 's/-.*//')
SYSROOT="$(cd "$DIR"/../$TARGET && pwd)"
case $ARCH in
i686)
# Dwarf is the default for i686, but currently there's an issue
@@ -39,4 +38,4 @@ esac
if [ -n "$CCACHE" ]; then
CCACHE=ccache
fi
$CCACHE $DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld --sysroot="$SYSROOT" $ARCH_FLAGS -Qunused-arguments "$@"
$CCACHE $DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld $ARCH_FLAGS -Qunused-arguments "$@"