]> code.ossystems Code Review - openembedded-core.git/commit
ruby: Remove __has_include and __has_include_next from preprocessed header file
authorKhem Raj <raj.khem@gmail.com>
Sun, 26 Jan 2020 19:27:40 +0000 (11:27 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jan 2020 16:38:54 +0000 (16:38 +0000)
commitb4f0df9a0e998af746bcd84cb81ea4ba0107f989
tree5c13a88b8057e0a2324759881cd374b9c834b2e1
parent4f8f2fd72fee6cf5aedbb679b2c29b88f98a5e11
ruby: Remove __has_include and __has_include_next from preprocessed header file

one of the build steps ruby has is that it generated rb_mjit_header.h
during configure using gcc preprocessor using -dD which emits built-in
defines as well, problem happens when this header is later included in
subsequent compiles, where compiler errors out stating that an existing
internal define is redefined

| /tmp/20200123-2021083-2c601q.h:13849:9: error: "__has_include" cannot be used as a macro name
| 13849 | #define __has_include __has_include
|       |         ^~~~~~~~~~~~~
| compilation terminated due to -Wfatal-errors.

Since compiler already will take care of it internally we can edit it
out from this header file

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/ruby/ruby/remove_has_include_macros.patch [new file with mode: 0644]
meta/recipes-devtools/ruby/ruby_2.6.5.bb