mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-13 01:29:00 +08:00
relink the executable in case one of the vendored libraries changed
This commit is contained in:
@@ -274,6 +274,7 @@ EOS
|
||||
or File.mtime(config.project_file) > File.mtime(main_exec) \
|
||||
or objs.any? { |path, _| File.mtime(path) > File.mtime(main_exec) } \
|
||||
or File.mtime(main_o) > File.mtime(main_exec) \
|
||||
or vendor_libs.any? { |lib| File.mtime(lib) > File.mtime(main_exec) } \
|
||||
or File.mtime(File.join(datadir, platform, 'libmacruby-static.a')) > File.mtime(main_exec)
|
||||
App.info 'Link', main_exec
|
||||
objs_list = objs.map { |path, _| path }.unshift(main_o).map { |x| "\"#{x}\"" }.join(' ')
|
||||
|
||||
Reference in New Issue
Block a user