rakelib/extensions.rake
#
# Ask the VM to build an extension from source.
#
Ask the VM to build an extension from source.
Ask the VM to build an extension from source .
def compile_extension(path, flags = "-p -I#{Dir.pwd}/vm/capi")
  cflags = Object.const_get(:FLAGS).reject {|f| f =~ /-Wno-deprecated|-Weffc\+\+/ }
  cflags.each {|flag| flags << " -C,#{flag}" }
  verbose = $verbose ? "-d" : ""
  command = "./bin/rbx compile #{verbose} #{flags} #{path}"
  if $verbose
    sh command
  else
    puts "Building extension #{path}"
    sh command, :verbose => false
  end
end
def compile_extension ( path , flags = "-p -I#{Dir.pwd}/vm/capi" ) cflags = Object . const_get ( :FLAGS ) . reject { | f | f =~ / -Wno-deprecated|-Weffc \+ \+ / } cflags . each { | flag | flags << " -C,#{flag}" } verbose = $verbose ? "-d" : "" command = "./bin/rbx compile #{verbose} #{flags} #{path}" if $verbose sh command else puts "Building extension #{path}" sh command , :verbose => false end end
Ask the VM to build an extension from source.
Ask the VM to build an extension from source .
path
<not_specific>
flags
<not_specific>
pwd
<not_specific>