aboutsummaryrefslogtreecommitdiff
path: root/src/rt
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp
index 299f04e7..66ca2dc2 100644
--- a/src/rt/rust.cpp
+++ b/src/rt/rust.cpp
@@ -80,10 +80,8 @@ extern "C" CDECL int
rust_start(uintptr_t main_fn, rust_crate const *crate, int argc,
char **argv, void* crate_map) {
- // FIXME commented out until I figure out how to detect rustboot in a sane
- // way
- /* if (NOT_USING_RUSTBOOT)
- update_log_settings(crate_map, getenv("RUST_LOG"));*/
+ if (crate->abi_tag != ABI_X86_RUSTBOOT_CDECL)
+ update_log_settings(crate_map, getenv("RUST_LOG"));
rust_srv *srv = new rust_srv();
rust_kernel *kernel = new rust_kernel(srv);
kernel->start();