Backport #9866

Backport r45378

Added by Akinori MUSHA 11 months ago. Updated 10 months ago.

[ruby-core:62786]
Status:Closed
Priority:Normal
Assignee:-

Description

Please backport r45378 (#9658).

Associated revisions

Revision 46402
Added by Tomoyuki Chikanaga 10 months ago

merge revision(s) r45378: [Backport #9658] [Backport #9866]

* configure.in: Fix a build problem with clang and --with-opt-dir.
  If ruby is configured with --with-opt-dir=dir when using clang
  as compiler, a warning `clang: warning: argument unused during
  compilation: '-I dir'` is emitted almost every time clang
  compiles a file.  Unfortunately, RUBY_CHECK_PRINTF_PREFIX takes
  any output from the compiler as fatal error, and the check thus
  fails due to the warning.  This is an attempt to fix the problem
  by adding a flag -Qunused-arguments to CFLAGS locally in the
  function to suppress the warning.  [Bug #9658]
  [Fixes GH-571] https://github.com/ruby/ruby/pull/571

History

#1 Updated by Tomoyuki Chikanaga 10 months ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r46402.


merge revision(s) r45378: [Backport #9658] [Backport #9866]

* configure.in: Fix a build problem with clang and --with-opt-dir.
  If ruby is configured with --with-opt-dir=dir when using clang
  as compiler, a warning `clang: warning: argument unused during
  compilation: '-I dir'` is emitted almost every time clang
  compiles a file.  Unfortunately, RUBY_CHECK_PRINTF_PREFIX takes
  any output from the compiler as fatal error, and the check thus
  fails due to the warning.  This is an attempt to fix the problem
  by adding a flag -Qunused-arguments to CFLAGS locally in the
  function to suppress the warning.  [Bug #9658]
  [Fixes GH-571] https://github.com/ruby/ruby/pull/571

Also available in: Atom PDF