mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
14 lines
237 B
Ruby
14 lines
237 B
Ruby
require 'rbconfig'
|
|
require 'stringio'
|
|
|
|
puts "CPPFLAGS: #{RbConfig::CONFIG["CPPFLAGS"]}"
|
|
|
|
$stderr = StringIO.new
|
|
begin
|
|
system RbConfig.ruby, "-e", "p :OK"
|
|
out = $stderr.string
|
|
ensure
|
|
$stderr = STDERR
|
|
end
|
|
abort out unless out.empty?
|