Class: Inliner::Compilers::GPlusPlus

Inherits:
GCC show all
Defined in:
lib/ffi-inliner/inliner.rb

Instance Attribute Summary

Attributes inherited from Compiler

#progname

Instance Method Summary collapse

Methods inherited from GCC

#cmd, #exists?

Methods inherited from Compiler

check_and_create, #compile, #initialize

Constructor Details

This class inherits a constructor from Inliner::Compilers::Compiler

Instance Method Details

#ldsharedObject



101
102
103
104
105
106
107
# File 'lib/ffi-inliner/inliner.rb', line 101

def ldshared
  if Config::CONFIG['target_os'] =~ /darwin/
    'g++ -dynamic -bundle -fPIC'
  else
    'g++ -shared -fPIC'
  end
end