diff options
| author | Nihad Abbasov <[email protected]> | 2013-05-09 17:05:59 +0500 |
|---|---|---|
| committer | Nihad Abbasov <[email protected]> | 2013-05-09 17:05:59 +0500 |
| commit | 9dd539bb157e40e78791d83a89f4727d4b10115d (patch) | |
| tree | 6e183bf6b734005dd39854ef5bb9c2d33ed549f5 /tasks/mruby_build_commands.rake | |
| parent | 14bd8ceff3ee5e82f10b4cd5a9fe6f78d00bd3bd (diff) | |
| download | mruby-9dd539bb157e40e78791d83a89f4727d4b10115d.tar.gz mruby-9dd539bb157e40e78791d83a89f4727d4b10115d.zip | |
remove unused variables
Diffstat (limited to 'tasks/mruby_build_commands.rake')
| -rw-r--r-- | tasks/mruby_build_commands.rake | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake index b968d07be..a47633c51 100644 --- a/tasks/mruby_build_commands.rake +++ b/tasks/mruby_build_commands.rake @@ -29,7 +29,7 @@ module MRuby sh build.filename(command) + ' ' + ( options % params ) end end - + class Command::Compiler < Command attr_accessor :flags, :include_paths, :defines, :source_exts attr_accessor :compile_options, :option_define, :option_include_path, :out_ext @@ -57,13 +57,9 @@ module MRuby end [flags, define_flags, include_path_flags, _flags].flatten.join(' ') end - + def run(outfile, infile, _defineds=[], _include_paths=[], _flags=[]) FileUtils.mkdir_p File.dirname(outfile) - define_flags = [defines, _defineds].flatten.map{ |d| option_define % d } - include_path_flags = [include_paths, _include_paths, File.dirname(infile)].flatten.map do |f| - option_include_path % filename(f) - end _pp "CC", infile.relative_path, outfile.relative_path if MRUBY_BUILD_HOST_IS_CYGWIN _run compile_options, { :flags => all_flags(_defineds, _include_paths, _flags), @@ -152,7 +148,6 @@ module MRuby def run(outfile, objfiles, _libraries=[], _library_paths=[], _flags=[], _flags_before_libraries=[], _flags_after_libraries=[]) FileUtils.mkdir_p File.dirname(outfile) library_flags = [libraries, _libraries].flatten.map { |d| option_library % d } - library_path_flags = [library_paths, _library_paths].flatten.map { |f| option_library_path % filename(f) } _pp "LD", outfile.relative_path if MRUBY_BUILD_HOST_IS_CYGWIN |
