summaryrefslogtreecommitdiffhomepage
path: root/tasks/mruby_build_commands.rake
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-05-09 06:15:04 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-05-09 06:15:04 -0700
commit2241c39a203966ac4ea555013b7c4bce8ba22088 (patch)
treecbf8506d66e1591f6f3c0adde88a65c1e3c425b2 /tasks/mruby_build_commands.rake
parent2e3e5d9c29093ae0e32c0b7e7adc97588d7a76a4 (diff)
parent9dd539bb157e40e78791d83a89f4727d4b10115d (diff)
downloadmruby-2241c39a203966ac4ea555013b7c4bce8ba22088.tar.gz
mruby-2241c39a203966ac4ea555013b7c4bce8ba22088.zip
Merge pull request #1245 from NARKOZ/fix-warnings
remove unused variables
Diffstat (limited to 'tasks/mruby_build_commands.rake')
-rw-r--r--tasks/mruby_build_commands.rake9
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