Sha256: 72d4abace3a18869979587fba7325a92564a101401cdb81edc277cf41c8d5375

Contents?: true

Size: 487 Bytes

Versions: 22

Compression:

Stored size: 487 Bytes

Contents

module FFI::Compiler
  class Platform
    LIBSUFFIX = FFI::Platform.mac? ? 'bundle' : FFI::Platform::LIBSUFFIX
    
    def self.system
      @@system ||= Platform.new
    end
    
    def map_library_name(name)
      "#{FFI::Platform::LIBPREFIX}#{name}.#{LIBSUFFIX}"
    end
    
    def arch
      FFI::Platform::ARCH
    end
    
    def os
      FFI::Platform::OS
    end
    
    def name
      FFI::Platform.name
    end
    
    def mac?
      FFI::Platform.mac?
    end
  end
end

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/platform.rb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/platform.rb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/platform.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/ffi-compiler-1.3.2/lib/ffi-compiler/platform.rb
ffi-compiler-1.3.2 lib/ffi-compiler/platform.rb
ffi-compiler-1.3.1 lib/ffi-compiler/platform.rb
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/platform.rb
ffi-compiler2-2.3.0 lib/ffi-compiler/platform.rb
ffi-compiler2-2.2.2 lib/ffi-compiler/platform.rb
ffi-compiler2-2.2.1 lib/ffi-compiler/platform.rb
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/platform.rb
direct7-0.0.11 vendor/bundle/ruby/2.7.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/platform.rb
ffi-compiler2-2.0.1 lib/ffi-compiler/platform.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/ffi-compiler2-2.0.0/lib/ffi-compiler/platform.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/ffi-compiler2-2.0.0/lib/ffi-compiler/platform.rb
ffi-compiler-1.0.1 lib/ffi-compiler/platform.rb
ffi-compiler-1.0.0 lib/ffi-compiler/platform.rb
ffi-compiler2-2.0.0 lib/ffi-compiler/platform.rb
ffi-compiler-0.1.3 lib/ffi-compiler/platform.rb
ffi-compiler-0.1.2 lib/ffi-compiler/platform.rb