From 68c4b1ab87b20d290fee152e09e3e3cc266a1919 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Mon, 7 Jul 2025 09:14:10 +0200 Subject: [PATCH] Delete ld wrapper --- scripts/ld-wrapper | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100755 scripts/ld-wrapper diff --git a/scripts/ld-wrapper b/scripts/ld-wrapper deleted file mode 100755 index 6fa9d39..0000000 --- a/scripts/ld-wrapper +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# PROJECT: XTchain -# LICENSE: See the COPYING.md in the top level directory -# FILE: scripts/ld-wrapper -# DESCRIPTION: LLD Wrapper -# DEVELOPERS: Martin Storsjo -# Rafal Kupiec - - -# Set basic variables -DIR="$(cd $(dirname $0) && pwd)" -BASENAME="$(basename $0)" -TARGET="${BASENAME%-*}" -DEFAULT_TARGET="x86_64-w64-mingw32" - -# Update PATH -export PATH="${DIR}":"${PATH}" - -# Set proper target -if [ "${TARGET}" = "${BASENAME}" ]; then - TARGET="${DEFAULT_TARGET}" -fi - -# Set target machine -ARCH="${TARGET%%-*}" -case ${ARCH} in - aarch64) - M="arm64pe" - ;; - armv7) - M="thumb2pe" - ;; - i686) - M="i386pe" - ;; - x86_64) - M="i386pep" - ;; -esac - -# Launch the linker -ld.lld -m ${M} "$@"