generate better tmpfiles to allow multiple compilations of the same project (backported from Ed's branch)
--- MacRuby/trunk/bin/rubyc 2010-01-06 00:59:27 UTC (rev 3192)
+++ MacRuby/trunk/bin/rubyc 2010-01-06 01:15:29 UTC (rev 3193)
@@ -341,7 +341,7 @@
end
def gen_tmpfile(base, ext)
- file = File.join(@tmpdir, "#{base}.#{ext}")
+ file = File.join(@tmpdir, "#{base}-#{$$}.#{ext}")
@tmpfiles << file
file
end