Skip to content

Commit 5041944

Browse files
committed
Yell louder when a linkage error in rt occurs, as compiler output fails quietly on null return.
1 parent e621f1e commit 5041944

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rt/rust_crate_cache.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ rust_crate_cache::c_sym::c_sym(rust_dom *dom, lib *library, char const *name)
4949
dom->log(rust_log::CACHE, "resolved symbol '%s' to 0x%" PRIxPTR,
5050
name, val);
5151
} else {
52-
dom->log(rust_log::CACHE, "unresolved symbol '%s', null lib handle",
52+
dom->log(rust_log::CACHE | rust_log::ERR,
53+
"unresolved symbol '%s', null lib handle",
5354
name);
5455
}
5556
}
@@ -79,7 +80,7 @@ rust_crate_cache::rust_sym::rust_sym(rust_dom *dom,
7980
typedef rust_crate_reader::die die;
8081
rust_crate const *crate = (rust_crate*)crate_sym->get_val();
8182
if (!crate) {
82-
dom->log(rust_log::CACHE,
83+
dom->log(rust_log::CACHE | rust_log::ERR,
8384
"failed to resolve symbol, null crate symbol");
8485
return;
8586
}

0 commit comments

Comments
 (0)