better init function names, using the sha1 of the full .bc path (sadly we can’t follow what we do for ios/osx as it would require bundling llvm-nm or another tool with the distribution)

This commit is contained in:
Laurent Sansonetti
2014-10-17 12:40:04 +02:00
parent 1749dd4317
commit 8617f53d17

View File

@@ -131,7 +131,6 @@ EOS
# Compile Ruby files.
ruby = App.config.bin_exec('ruby')
init_func_n = 0
ruby_objs = []
bs_files += Dir.glob(File.join(App.config.versioned_datadir, 'BridgeSupport/*.bridgesupport'))
bs_files += App.config.vendored_bs_files
@@ -141,7 +140,7 @@ EOS
ruby_objs_changed = false
App.config.files.each do |ruby_path|
bc_path = File.join(objs_build_dir, ruby_path + '.bc')
init_func = "InitRubyFile#{init_func_n += 1}"
init_func = "MREP_" + `/bin/echo \"#{File.expand_path(bc_path)}\" | /usr/bin/openssl sha1`.strip
if !File.exist?(bc_path) \
or File.mtime(ruby_path) > File.mtime(bc_path) \
or File.mtime(ruby) > File.mtime(bc_path) \