From 0c28a916be99e0cad31af0500c4e88ad4456df99 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 24 Aug 2023 00:50:38 -0700 Subject: [PATCH] Use cxx_name --- native/src/base/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/src/base/lib.rs b/native/src/base/lib.rs index a17971aa3..de93a5d40 100644 --- a/native/src/base/lib.rs +++ b/native/src/base/lib.rs @@ -32,8 +32,8 @@ pub mod ffi { } extern "Rust" { - #[rust_name = "log_from_cxx"] - fn log_with_rs(level: LogLevel, msg: &[u8]); + #[cxx_name = "log_with_rs"] + fn log_from_cxx(level: LogLevel, msg: &[u8]); fn exit_on_error(b: bool); fn set_log_level_state(level: LogLevel, enabled: bool); fn cmdline_logging();