Revision: 2781 http://trac.macosforge.org/projects/ruby/changeset/2781 Author: lsansonetti@apple.com Date: 2009-10-11 22:09:01 -0700 (Sun, 11 Oct 2009) Log Message: ----------- make sure the init function name doesn't contain '-' Modified Paths: -------------- MacRuby/trunk/bin/rubyc Modified: MacRuby/trunk/bin/rubyc =================================================================== --- MacRuby/trunk/bin/rubyc 2009-10-10 20:28:31 UTC (rev 2780) +++ MacRuby/trunk/bin/rubyc 2009-10-12 05:09:01 UTC (rev 2781) @@ -96,7 +96,7 @@ output ||= File.join(File.dirname(path), base + '.o') # Generate init function (must be unique). - init_func = "MREP_#{File.read(path).hash}" + init_func = "MREP_#{File.read(path).hash.abs}" # Compile the file into LLVM bitcode. bc = gen_tmpfile(base, 'bc')