mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
reduce duplicate include.
Without this patch, 20k files are opened (openat syscall) because of duplicate includes. This patch reduced it to 3k and build time was reduced compile time of range.o from 15sec -> 3sec on my machine. [Bug #16772]
This commit is contained in:
parent
63a5412db7
commit
443389effc
Notes:
git
2020-04-10 14:53:50 +09:00
40 changed files with 9 additions and 56 deletions
|
@ -19,9 +19,6 @@
|
|||
* @brief Defines #RUBY3_TOKEN_PASTE.
|
||||
*/
|
||||
#include "ruby/3/config.h"
|
||||
#include "ruby/3/compiler_since.h"
|
||||
#include "ruby/3/has/warning.h"
|
||||
#include "ruby/3/warning_push.h"
|
||||
|
||||
/* :TODO: add your compiler here. There are many compilers that can suppress
|
||||
* warnings via pragmas, but not all of them accept such things inside of `#if`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue