diff --git a/wrappers/clang-target-wrapper.sh b/wrappers/clang-target-wrapper.sh index 50b21cd..b8077e5 100755 --- a/wrappers/clang-target-wrapper.sh +++ b/wrappers/clang-target-wrapper.sh @@ -16,24 +16,24 @@ 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 - # in libunwind with unwinding clang generated dwarf opcodes on 32 bit - # x86, pending resolution at https://reviews.llvm.org/D38680. - ARCH_FLAGS=-fsjlj-exceptions - ;; + # Dwarf is the default for i686, but currently there's an issue + # in libunwind with unwinding clang generated dwarf opcodes on 32 bit + # x86, pending resolution at https://reviews.llvm.org/D38680. + ARCH_FLAGS=-fsjlj-exceptions + ;; x86_64) - # Explicitly request dwarf on x86_64; SEH is the default there but - # libcxxabi lacks support for it. - ARCH_FLAGS=-fdwarf-exceptions - ;; + # Explicitly request dwarf on x86_64; SEH is the default there but + # libcxxabi lacks support for it. + ARCH_FLAGS=-fdwarf-exceptions + ;; armv7) - # Dwarf is the default here. - ARCH_FLAGS= - ;; + # Dwarf is the default here. + ARCH_FLAGS= + ;; aarch64) - # Dwarf is the default on aarch64; enable emulated TLS since native - # TLS isn't implemented yet. - ARCH_FLAGS=-femulated-tls - ;; + # Dwarf is the default on aarch64; enable emulated TLS since native + # TLS isn't implemented yet. + ARCH_FLAGS=-femulated-tls + ;; esac $DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld --sysroot="$SYSROOT" $ARCH_FLAGS -Qunused-arguments "$@" diff --git a/wrappers/ld-wrapper.sh b/wrappers/ld-wrapper.sh index 7e23e0c..a0d5b09 100755 --- a/wrappers/ld-wrapper.sh +++ b/wrappers/ld-wrapper.sh @@ -1,17 +1,17 @@ #!/bin/sh if [ "$1" = "--help" ]; then - cat< option in this case. - ld.lld -v - exit 0 + # This isn't implemented in the lld mingw frontend, so don't + # pass the -m option in this case. + ld.lld -v + exit 0 fi TARGET="$(basename $0 | sed 's/-[^-]*$//')"