Class: Libv8::Compiler::AppleLLVM

Inherits:
Clang show all
Defined in:
ext/libv8/compiler/apple_llvm.rb

Constant Summary collapse

LLVM_VERSION_REGEXP =
/Apple LLVM version (\d+\.\d+(\.\d+)*) \(/i

Constants inherited from Clang

Clang::CLANG_VERSION_REGEXP

Constants inherited from GenericCompiler

GenericCompiler::GENERIC_TARGET_REGEXP, GenericCompiler::GENERIC_VERSION_REGEXP

Instance Method Summary collapse

Methods inherited from GenericCompiler

#call, #initialize, #target, #to_s, #version

Constructor Details

This class inherits a constructor from Libv8::Compiler::GenericCompiler

Instance Method Details

#compatible?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'ext/libv8/compiler/apple_llvm.rb', line 10

def compatible?
  version >= '4.3' unless version.nil?
end

#nameObject



6
7
8
# File 'ext/libv8/compiler/apple_llvm.rb', line 6

def name
  'Apple LLVM'
end