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
This commit is contained in:
Martin Liška 2022-08-01 08:47:05 +00:00 committed by Git OBS Bridge
parent 468c496c82
commit 5781c2aea9
2 changed files with 2 additions and 3 deletions

View File

@ -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; }

View File

@ -64,7 +64,6 @@ build time especially in rapid debug-edit-rebuild cycles.
%prep
%autosetup -p1
uname -m
%build
%if %{suse_version} < 1550