about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorTom Lee <github@tomlee.co>2013-05-24 20:18:20 -0700
committerTom Lee <github@tomlee.co>2013-05-27 17:13:01 -0700
commitcddd274e4defa86820a7a4218f6f55a440b2f82f (patch)
treea0e5087ddbfffba07d71eeff1a2f943d5f62d2cd /src/rt/rust_builtin.cpp
parent67283eaad2f53e19ae963e2b0a04b65826568336 (diff)
downloadrust-cddd274e4defa86820a7a4218f6f55a440b2f82f.tar.gz
rust-cddd274e4defa86820a7a4218f6f55a440b2f82f.zip
Add _RUST_STAGE0 #ifdefs
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 99fd46737e0..cf7c0777057 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -754,7 +754,11 @@ public:
 
     virtual void run() {
         record_sp_limit(0);
+#ifdef _RUST_STAGE0
+        fn.f(NULL, fn.env, NULL);
+#else
         fn.f(fn.env, NULL);
+#endif
     }
 };