diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-10-03 14:41:53 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-10-03 15:02:22 -0700 |
| commit | 365f17483800a9c688bc8606959a9121b8e855a6 (patch) | |
| tree | 3b509a7f60ea0f28d7b7382ea1847001e0e6a0cd /src/rt/rust_env.cpp | |
| parent | 72b7a7707f7baead4e569c9d3ec2fe28b9486ac9 (diff) | |
| download | rust-365f17483800a9c688bc8606959a9121b8e855a6.tar.gz rust-365f17483800a9c688bc8606959a9121b8e855a6.zip | |
Attempt to fix os::args errors on various platforms.
Diffstat (limited to 'src/rt/rust_env.cpp')
| -rw-r--r-- | src/rt/rust_env.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/rust_env.cpp b/src/rt/rust_env.cpp index a54dc27c71f..4e653c8f9e6 100644 --- a/src/rt/rust_env.cpp +++ b/src/rt/rust_env.cpp @@ -107,7 +107,7 @@ copyenv(const char* name) { } rust_env* -load_env() { +load_env(int argc, char **argv) { rust_env *env = (rust_env*)malloc(sizeof(rust_env)); env->num_sched_threads = (size_t)get_num_threads(); @@ -118,7 +118,8 @@ load_env() { env->detailed_leaks = getenv(DETAILED_LEAKS) != NULL; env->rust_seed = copyenv(RUST_SEED); env->poison_on_free = getenv(RUST_POISON_ON_FREE) != NULL; - + env->argc = argc; + env->argv = argv; return env; } |
