Consistently use 4 spaces for indentation in shell scripts

This commit is contained in:
Martin Storsjö committed 2018-02-26 12:48:18 +02:00
1 parent 9167841f5c
commit 3e61dc4908
2 files changed
+22 -22

No files matched your search

+16 -16
View File
@@ -16,24 +16,24 @@ ARCH=$(echo $TARGET | sed 's/-.*//')
SYSROOT="$(cd "$DIR"/../$TARGET && pwd)" SYSROOT="$(cd "$DIR"/../$TARGET && pwd)"
case $ARCH in case $ARCH in
i686) i686)
# Dwarf is the default for i686, but currently there's an issue # Dwarf is the default for i686, but currently there's an issue
# in libunwind with unwinding clang generated dwarf opcodes on 32 bit # in libunwind with unwinding clang generated dwarf opcodes on 32 bit
# x86, pending resolution at https://reviews.llvm.org/D38680. # x86, pending resolution at https://reviews.llvm.org/D38680.
ARCH_FLAGS=-fsjlj-exceptions ARCH_FLAGS=-fsjlj-exceptions
;; ;;
x86_64) x86_64)
# Explicitly request dwarf on x86_64; SEH is the default there but # Explicitly request dwarf on x86_64; SEH is the default there but
# libcxxabi lacks support for it. # libcxxabi lacks support for it.
ARCH_FLAGS=-fdwarf-exceptions ARCH_FLAGS=-fdwarf-exceptions
;; ;;
armv7) armv7)
# Dwarf is the default here. # Dwarf is the default here.
ARCH_FLAGS= ARCH_FLAGS=
;; ;;
aarch64) aarch64)
# Dwarf is the default on aarch64; enable emulated TLS since native # Dwarf is the default on aarch64; enable emulated TLS since native
# TLS isn't implemented yet. # TLS isn't implemented yet.
ARCH_FLAGS=-femulated-tls ARCH_FLAGS=-femulated-tls
;; ;;
esac esac
$DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld --sysroot="$SYSROOT" $ARCH_FLAGS -Qunused-arguments "$@" $DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld --sysroot="$SYSROOT" $ARCH_FLAGS -Qunused-arguments "$@"
+6 -6
View File
@@ -1,17 +1,17 @@
#!/bin/sh #!/bin/sh
if [ "$1" = "--help" ]; then if [ "$1" = "--help" ]; then
cat<<EOF cat<<EOF
GNU ld impersonation GNU ld impersonation
We don't support --enable-auto-import, but libtool may look for this flag. We don't support --enable-auto-import, but libtool may look for this flag.
EOF EOF
exit 0 exit 0
fi fi
if [ "$1" = "-v" ]; then if [ "$1" = "-v" ]; then
# This isn't implemented in the lld mingw frontend, so don't # This isn't implemented in the lld mingw frontend, so don't
# pass the -m <machine> option in this case. # pass the -m <machine> option in this case.
ld.lld -v ld.lld -v
exit 0 exit 0
fi fi
TARGET="$(basename $0 | sed 's/-[^-]*$//')" TARGET="$(basename $0 | sed 's/-[^-]*$//')"