class Rmk::CC
C compiler tool
Attributes
cc[RW]
C compiler binary
Public Class Methods
new()
click to toggle source
Calls superclass method
Rmk::ClikeProcessor.new
# File tools/cc.rb, line 21 def initialize super data = tool_params(:CC, generator.configuration) @flags.add(data[:flags]) @cc = data[:cc] end
Public Instance Methods
cc=(cmd)
click to toggle source
# File tools/cc.rb, line 14 def cc=(cmd) @cc=cmd @vendor=nil ld.ld=@cc.dup if ld.vendor != vendor @cc end
command()
click to toggle source
# File tools/cc.rb, line 28 def command '$cc -MMD -MT $out -MF $out.dep $cflags -o $out -c $in' end
ninja_variables(writer = generator.ninja)
click to toggle source
# File tools/cc.rb, line 32 def ninja_variables(writer = generator.ninja) writer.comment 'CC' writer.variable('cc', @cc) writer.variable('ccflags', [flags.text, definitions_text, include_paths_text].join(' ')) writer.newline end
source_pattern()
click to toggle source
# File tools/cc.rb, line 40 def source_pattern /\.c$/ end