From 443389effc37308ce1a3c3a840082a344fc6af56 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 10 Apr 2020 11:20:35 +0900 Subject: 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] --- include/ruby/3/compiler_is.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/ruby/3/compiler_is.h') diff --git a/include/ruby/3/compiler_is.h b/include/ruby/3/compiler_is.h index 39d1fbf70d..9f8b81315d 100644 --- a/include/ruby/3/compiler_is.h +++ b/include/ruby/3/compiler_is.h @@ -25,6 +25,9 @@ * @retval true It is. * @retval false It isn't. */ +#ifndef RUBY3_COMPILER_IS_INCLUDED +#define RUBY3_COMPILER_IS_INCLUDED + #ifndef RUBY3_COMPILER_IS # define RUBY3_COMPILER_IS(cc) RUBY3_COMPILER_IS_ ## cc #endif @@ -41,3 +44,5 @@ * Apple's might be needed. * * - ARM's armclang: ditto, it can be clang-backended. */ + +#endif // RUBY3_COMPILER_IS_INCLUDED -- cgit v1.2.3