1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Relaxed target_os matching

When target_alias is not empty, `-gnu` suffixed is not stripped.

[Bug #16015]
This commit is contained in:
Nobuyoshi Nakada 2019-07-23 18:22:25 +09:00
parent e8d4f0cbc7
commit 03958a0c0d
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -2260,14 +2260,14 @@ AS_CASE([$rb_cv_coroutine], [yes|''], [
[x*64-darwin*], [ [x*64-darwin*], [
rb_cv_coroutine=amd64 rb_cv_coroutine=amd64
], ],
[x*64-linux], [ [x*64-linux*], [
AS_CASE(["$ac_cv_sizeof_voidp"], AS_CASE(["$ac_cv_sizeof_voidp"],
[8], [ rb_cv_coroutine=amd64 ], [8], [ rb_cv_coroutine=amd64 ],
[4], [ rb_cv_coroutine=x86 ], [4], [ rb_cv_coroutine=x86 ],
[*], [ rb_cv_coroutine= ] [*], [ rb_cv_coroutine= ]
) )
], ],
[*86-linux], [ [*86-linux*], [
rb_cv_coroutine=x86 rb_cv_coroutine=x86
], ],
[x64-mingw32], [ [x64-mingw32], [
@ -2276,13 +2276,13 @@ AS_CASE([$rb_cv_coroutine], [yes|''], [
[*86-mingw32], [ [*86-mingw32], [
rb_cv_coroutine=win32 rb_cv_coroutine=win32
], ],
[armv7*-linux-*], [ [armv7*-linux*], [
rb_cv_coroutine=ucontext rb_cv_coroutine=ucontext
], ],
[aarch64-linux], [ [aarch64-linux*], [
rb_cv_coroutine=arm64 rb_cv_coroutine=arm64
], ],
[powerpc64le-linux], [ [powerpc64le-linux*], [
rb_cv_coroutine=ppc64le rb_cv_coroutine=ppc64le
], ],
[x86_64-openbsd*], [ [x86_64-openbsd*], [