ship only one libmacruby-repl.dylib file per platform, the one that has been built with the lowest deployment target (4.3 for ios and 10.7 for osx)

This commit is contained in:
Laurent Sansonetti
2013-10-30 23:54:57 +01:00
parent 67ba448ab8
commit edcdf29ed6
3 changed files with 16 additions and 17 deletions

View File

@@ -456,7 +456,7 @@ EOS
# Optional support for #eval (OSX-only).
if config.respond_to?(:eval_support) and config.eval_support
repl_dylib_path = File.join(datadir, platform, 'libmacruby-repl.dylib')
repl_dylib_path = File.join(datadir, '..', 'libmacruby-repl.dylib')
dest_path = File.join(app_resources_dir, File.basename(repl_dylib_path))
copy_resource(repl_dylib_path, dest_path)
preserve_resources << File.basename(repl_dylib_path)