Skip to content

Commit

Permalink
Make sure to parse options before starting the first VM
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Aug 29, 2012
1 parent 72207d9 commit b265bc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vm/environment.cpp
Expand Up @@ -96,6 +96,8 @@ namespace rubinius {
VM::init_stack_size();

shared = new SharedState(this, config, config_parser);

load_vm_options(argc_, argv_);
root_vm = shared->new_vm();
state = new State(root_vm);

Expand Down Expand Up @@ -851,7 +853,6 @@ namespace rubinius {
std::string runtime = system_prefix() + RBX_RUNTIME_PATH;

load_platform_conf(runtime);
load_vm_options(argc_, argv_);
boot_vm();
load_argv(argc_, argv_);

Expand Down

0 comments on commit b265bc7

Please sign in to comment.