mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Check if -pipe option works
With `-pipe` option, gcc of Homebrew on macOS results in a mysterious error. ``` $ command -v gcc-14 /opt/homebrew/bin/gcc-14 $ gcc-14 --version gcc-14 (Homebrew GCC 14.2.0) 14.2.0 Copyright (C) 2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc-14 -c -pipe conftest.c clang: error: no input files ```
This commit is contained in:
parent
1e59fa2bae
commit
47f6ba349f
Notes:
git
2024-10-23 14:02:38 +00:00
1 changed files with 2 additions and 1 deletions
|
@ -4076,7 +4076,8 @@ AS_CASE(["$target_os"],
|
|||
RUBY_APPEND_OPTION(CFLAGS, -pipe)
|
||||
],
|
||||
[darwin*], [
|
||||
RUBY_APPEND_OPTION(CFLAGS, -pipe)
|
||||
RUBY_TRY_CFLAGS(-pipe, [pipe_opt=yes], [pipe_opt=no])
|
||||
AS_IF([test $pipe_opt = yes], [RUBY_APPEND_OPTION(CFLAGS, -pipe)])
|
||||
AC_MSG_CHECKING([whether Security framework is needed])
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_BOOL_COMPILE_TRY([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue