[macruby-changes] [2781] MacRuby/trunk/bin/rubyc

source_changes at macosforge.org source_changes at macosforge.org
Sun Oct 11 22:09:05 PDT 2009


Revision: 2781
          http://trac.macosforge.org/projects/ruby/changeset/2781
Author:   lsansonetti at 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')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091011/bbe7f44d/attachment.html>


More information about the macruby-changes mailing list