module Jeka module Compiler class Gcc < Compiler def initialize(files, options = {}) @files = files @options = options end private def _run_command cmd = './' << @options[:o] end def _build_command cmd = 'gcc ' @files.each do |f| cmd << f << ' ' end @options.each do |opt, value| cmd << '-' << opt.to_s << ' ' << value << ' ' end return cmd end end end end