make sure the init function name doesn't contain '-'
--- 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')