From 4cc501bcfd23691c5244877f9d088a6be6bc8e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Thu, 24 Sep 2020 12:16:31 +0900 Subject: ext/-test-/RUBY_ALIGNOF: skip C++ when no compiler C++ compilers are optional. Skip C++ tests when they are absent. --- ext/-test-/RUBY_ALIGNOF/extconf.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/-test-/RUBY_ALIGNOF/extconf.rb') diff --git a/ext/-test-/RUBY_ALIGNOF/extconf.rb b/ext/-test-/RUBY_ALIGNOF/extconf.rb index ee6500d61e..98a370e987 100644 --- a/ext/-test-/RUBY_ALIGNOF/extconf.rb +++ b/ext/-test-/RUBY_ALIGNOF/extconf.rb @@ -1,2 +1,6 @@ # frozen_string_literal: false +$objs = %W"c.#$OBJEXT" + +$objs << "cpp.#$OBJEXT" if MakeMakefile['C++'].have_devel? + create_makefile("-test-/RUBY_ALIGNOF") -- cgit v1.2.1