mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.ac: Check x86intrin.h only when the target CPU is x86
The check output a warning on M1 Mac mini
20201127
T074507Z.log.html.gz
```
checking x86intrin.h usability... no
checking x86intrin.h presence... yes
configure: WARNING: x86intrin.h: present but cannot be compiled
configure: WARNING: x86intrin.h: check for missing prerequisite headers?
configure: WARNING: x86intrin.h: see the Autoconf documentation
configure: WARNING: x86intrin.h: section "Present But Cannot Be Compiled"
configure: WARNING: x86intrin.h: proceeding with the compiler's result
checking for x86intrin.h... no
```
This commit is contained in:
parent
f0e2ea2859
commit
5d8fe1267d
Notes:
git
2020-11-27 19:53:46 +09:00
1 changed files with 3 additions and 1 deletions
|
@ -1204,7 +1204,9 @@ AC_CHECK_HEADERS(syscall.h)
|
|||
AC_CHECK_HEADERS(time.h)
|
||||
AC_CHECK_HEADERS(ucontext.h)
|
||||
AC_CHECK_HEADERS(utime.h)
|
||||
AS_CASE("$target_cpu", [x64|x86_64|i[3-6]86*], [
|
||||
AC_CHECK_HEADERS(x86intrin.h)
|
||||
])
|
||||
|
||||
AC_ARG_WITH([gmp],
|
||||
[AS_HELP_STRING([--without-gmp],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue