summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authormattn <[email protected]>2013-01-23 22:48:27 +0900
committermattn <[email protected]>2013-01-23 22:48:27 +0900
commitd8d87f692f4f632815b91810224db538dc1b025f (patch)
treeb0e74142eca046f023d225110f33aaadd3cdb778 /tasks
parent538bbfc15f75b9fbde553d2466d4e39c50e5785a (diff)
downloadmruby-d8d87f692f4f632815b91810224db538dc1b025f.tar.gz
mruby-d8d87f692f4f632815b91810224db538dc1b025f.zip
Remove reverse
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mruby_build_commands.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake
index 533f0fe62..33dc82742 100644
--- a/tasks/mruby_build_commands.rake
+++ b/tasks/mruby_build_commands.rake
@@ -124,12 +124,12 @@ module MRuby
end
def library_flags(_libraries)
- [libraries, _libraries].flatten.reverse.map{ |d| option_library % d }.join(' ')
+ [libraries, _libraries].flatten.map{ |d| option_library % d }.join(' ')
end
def run(outfile, objfiles, _libraries=[], _library_paths=[], _flags=[])
FileUtils.mkdir_p File.dirname(outfile)
- library_flags = [libraries, _libraries].flatten.reverse.map{ |d| option_library % d }
+ 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", "#{filename(outfile)}"
_run link_options, { :flags => (flags + library_path_flags + _flags).join(' '),