Revision
3089
Author
lsansonetti@apple.com
Date
2009-12-08 18:12:40 -0800 (Tue, 08 Dec 2009)

Log Message

don't forget to initialize the load path in AOT main functions

Modified Paths

Diff

Modified: MacRuby/trunk/bin/rubyc (3088 => 3089)


--- MacRuby/trunk/bin/rubyc	2009-12-09 00:24:13 UTC (rev 3088)
+++ MacRuby/trunk/bin/rubyc	2009-12-09 02:12:40 UTC (rev 3089)
@@ -177,6 +177,7 @@
 extern "C" {
     void ruby_sysinit(int *, char ***);
     void ruby_init(void);
+    void ruby_init_loadpath(void);
     void ruby_set_argv(int, char **);
     void rb_vm_init_compiler(void);
     void *rb_vm_top_self(void);
@@ -195,6 +196,7 @@
         argv++;
     }
     ruby_init();
+    ruby_init_loadpath();
     ruby_set_argv(argc, argv);
     rb_vm_init_compiler();
     try {