File: extconf.rb

package info (click to toggle)
ruby-posix-spawn 0.3.15-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: ruby: 1,055; ansic: 314; makefile: 8
file content (11 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
require 'mkmf'

# warnings save lives
$CFLAGS << " -Wall " if RbConfig::CONFIG['GCC'] != ""

if RUBY_PLATFORM =~ /(mswin|mingw|cygwin|bccwin)/
  File.open('Makefile','w'){|f| f.puts "default: \ninstall: " }
else
  create_makefile('posix_spawn_ext')
end