Skip to content

Commit

Permalink
I suspect the presence of slashes gave us linker errors...
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Dec 6, 2024
1 parent 94c8405 commit 7786544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dylo-cli/src/init_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use dylo_runtime as _;
///
/// See <https://github.com/bearcove/dylo>
#[doc(hidden)]
#[export_name = "https://github.com/bearcove/dylo"]
#[export_name = "github.com_bearcove_dylo"]
pub extern "Rust" fn awaken() -> &'static (dyn crate::Mod) {
let m: crate::ModImpl = std::default::Default::default();
let m: std::boxed::Box<dyn crate::Mod> = std::boxed::Box::new(m);
Expand Down
2 changes: 1 addition & 1 deletion dylo-runtime/src/details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ pub fn load_mod(mod_name: &'static str) -> AnyModRef {

// note: we never dlclose the handle, on purpose.

let symbol_name = CString::new("https://github.com/bearcove/dylo").unwrap();
let symbol_name = CString::new("github.com_bearcove_dylo").unwrap();
let init_sym = unsafe { dlsym(handle, symbol_name.as_ptr()) };
if init_sym.is_null() {
let err = unsafe { std::ffi::CStr::from_ptr(dlerror()) }
Expand Down

0 comments on commit 7786544

Please sign in to comment.