From 5781c2aea9c5f11b906c1c1bb923deab7d6edcec41d0058275bde43153accc2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Mon, 1 Aug 2022 08:47:05 +0000 Subject: [PATCH] Fix skipping of mold-wrapper.sh for ARM targets. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=56 --- fix-tests.patch | 4 ++-- mold.spec | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fix-tests.patch b/fix-tests.patch index f4c8031..6aad73c 100644 --- a/fix-tests.patch +++ b/fix-tests.patch @@ -1,5 +1,5 @@ diff --git a/test/elf/mold-wrapper.sh b/test/elf/mold-wrapper.sh -index 077cc43..58da342 100755 +index 077cc43..dcffbb6 100755 --- a/test/elf/mold-wrapper.sh +++ b/test/elf/mold-wrapper.sh @@ -13,6 +13,10 @@ cd "$(dirname "$0")"/../.. @@ -8,7 +8,7 @@ index 077cc43..58da342 100755 +# Skip if target is ARM +# https://github.com/rui314/mold/issues/442 -+[ $MACHINE = arm ] && { echo skipped; exit; } ++[[ $MACHINE = "arm"* ]] && { echo skipped; exit; } + [ "$CC" = cc ] || { echo skipped; exit; } diff --git a/mold.spec b/mold.spec index 5fd33ab..cab9f41 100644 --- a/mold.spec +++ b/mold.spec @@ -64,7 +64,6 @@ build time especially in rapid debug-edit-rebuild cycles. %prep %autosetup -p1 -uname -m %build %if %{suse_version} < 1550