Class: Libv8::Compiler::Clang

Inherits:
GenericCompiler show all
Defined in:
ext/libv8/compiler/clang.rb

Direct Known Subclasses

AppleLLVM

Constant Summary collapse

CLANG_VERSION_REGEXP =
/clang version (\d+\.\d+(\.\d+)*) \(/i

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/clang.rb', line 10

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

#nameObject



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

def name
  'clang'
end