Sha256: 450a22e3fcf9a16dad1c37bcdcd5310f11924db7119e56e9ac3688ad7a1005b3

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

require 'rbconfig'
require 'mkmf'

# This is pretty terrible, but we need to have the environment set up
# before we require the ffi-clang module.

module LibDetect

  DARWIN_LIBCLANG = '/Library/Developer/CommandLineTools/usr/lib/libclang.dylib'

  host_os = RbConfig::CONFIG['host_os']
  case host_os
  when /darwin/
    File.exist? DARWIN_LIBCLANG
    ENV['LIBCLANG'] = DARWIN_LIBCLANG
  when /linux/
    prog = 'llvm-config-3.4'
    if find_executable(prog)
      ENV['LLVM_CONFIG'] = prog
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docurium-0.4.0 lib/libdetect.rb