Sha256: 53d5c731fdc86467251f3d29337ca225a22c6c62814960bb8779be4d2b1f2ae6
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 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' if find_executable(prog) ENV['LLVM_CONFIG'] = prog end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docurium-0.4.2 | lib/libdetect.rb |
docurium-0.4.1 | lib/libdetect.rb |