summaryrefslogtreecommitdiff
path: root/ext/-test-/RUBY_ALIGNOF/extconf.rb
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-09-24 12:16:31 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-09-25 11:38:33 +0900
commit4cc501bcfd23691c5244877f9d088a6be6bc8e13 (patch)
tree1e609bfc3da90703ed1920b77e046fb65d403219 /ext/-test-/RUBY_ALIGNOF/extconf.rb
parente75aed7abb7f869223ea05a2f96b2021b57bd98a (diff)
ext/-test-/RUBY_ALIGNOF: skip C++ when no compiler
C++ compilers are optional. Skip C++ tests when they are absent.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3570
Diffstat (limited to 'ext/-test-/RUBY_ALIGNOF/extconf.rb')
-rw-r--r--ext/-test-/RUBY_ALIGNOF/extconf.rb4
1 files changed, 4 insertions, 0 deletions
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")