aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-21 15:42:41 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-21 15:42:41 +0900
commit5e24a4e3920da5ff71f18f4dfe0928b2221285b4 (patch)
tree4d6b02a1b2e9c109027e54eae42e44e16dce2180 /tool
parent642875e474b4e6a13770b1dbbc33d466ba5e0718 (diff)
downloadruby-5e24a4e3920da5ff71f18f4dfe0928b2221285b4.tar.gz
Strip universal_archnames
Diffstat (limited to 'tool')
-rw-r--r--tool/m4/ruby_universal_arch.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/m4/ruby_universal_arch.m4 b/tool/m4/ruby_universal_arch.m4
index c8914c88d9..4cbea74c4e 100644
--- a/tool/m4/ruby_universal_arch.m4
+++ b/tool/m4/ruby_universal_arch.m4
@@ -17,7 +17,7 @@ AS_IF([test ${target_archs+set}], [
cpu=$archs
cpu=`echo $cpu | sed 's/-.*-.*//'`
universal_binary="${universal_binary+$universal_binary,}$cpu"
- universal_archnames="${universal_archnames} ${archs}=${cpu}"
+ universal_archnames="${universal_archnames:+$universal_archnames }${archs}=${cpu}"
ARCH_FLAG="${ARCH_FLAG+$ARCH_FLAG }-arch $archs"
])
done
@@ -73,7 +73,7 @@ EOF
sed -n 's/^"processor-name=\(.*\)"/\1/p'`
target="$target_cpu${target}"
AC_MSG_RESULT([$target_cpu])
- ])
+ ])
])
target_archs="$target_cpu"
])